Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
storage
/
logs
/
Filename :
laravel.log.bak-20240404
back
Copy
[2024-03-19 06:31:54] local.DEBUG: Headers: Array ( [accept-encoding] => Array ( [0] => gzip, deflate ) [accept-language] => Array ( [0] => en-US ) [connection] => Array ( [0] => Close ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5 skype-url-preview@microsoft.com ) [ms-cv] => Array ( [0] => NZlQng1Q9kWx+MO/022vvQ.0 ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 06:32:03] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 06:33:06] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 06:44:07] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 06:44:15] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 06:44:25] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 07:01:32] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:39:10] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:39:54] local.DEBUG: Headers: Array ( [accept-encoding] => Array ( [0] => gzip ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => WhatsApp/2.23.20.0 ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:40:03] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:40:33] local.DEBUG: Headers: Array ( [accept-encoding] => Array ( [0] => gzip ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => WhatsApp/2.23.20.0 ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:40:36] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:41:08] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:42:25] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:43:02] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:43:32] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => none ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-user] => Array ( [0] => ?1 ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:43:59] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 11:44:18] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 ) [accept-encoding] => Array ( [0] => gzip, deflate, br, zstd ) [accept-language] => Array ( [0] => en-US,en-IN;q=0.9,en-GB;q=0.8,en;q=0.7 ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 ) [sec-ch-ua] => Array ( [0] => "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122" ) [sec-ch-ua-mobile] => Array ( [0] => ?1 ) [sec-ch-ua-platform] => Array ( [0] => "Android" ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-site] => Array ( [0] => cross-site ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-dest] => Array ( [0] => document ) [x-https] => Array ( [0] => 1 ) ) [2024-03-19 14:24: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":"merebass1@gmail.com","name":"merebass1@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 merebass1@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: Brent<\\/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-03-19 14:24:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.67939ab0-e5fc-11ee-99c0-5254000b1a0e.18e57197fdb","object":"email"} [2024-03-19 14:47:16] local.INFO: product_id 126 is not added in store [2024-03-19 14:47:49] local.INFO: it is a global product so preapproving this product. [2024-03-19 14:47:49] local.ERROR: not enough balance to purchase the product [2024-03-20 07:51:34] 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-03-20 07:53:33] 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-03-20 07:53:37] 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-03-20 07:53:37] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 07:53:37] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 07:53:37] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 07:53:37] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 07:53:37] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 07:53:37] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:20: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-03-20 08:20:03] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:20:03] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:20:03] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:20:03] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:20:03] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:20:03] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:25: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-03-20 08:25:02] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:25:02] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:25:02] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:25:02] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:25:02] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:25:02] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:30: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-03-20 08:30:02] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:30:02] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:30:02] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:30:02] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:30:02] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:30:02] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:35: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-03-20 08:35:02] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:35:02] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:35:02] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:35:02] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:35:02] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:35:02] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:40: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-03-20 08:40:02] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:40:02] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:40:02] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:40:02] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:40:02] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:40:02] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:45: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-03-20 08:45:02] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:45:02] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:45:02] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:45:02] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:45:02] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:45:02] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 08:50: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-03-20 08:50:02] local.DEBUG: task with task_id: 105 already cloned today [2024-03-20 08:50:02] local.DEBUG: task with task_id: 104 already cloned today [2024-03-20 08:50:02] local.DEBUG: task with task_id: 103 already cloned today [2024-03-20 08:50:02] local.DEBUG: task with task_id: 162 already cloned today [2024-03-20 08:50:02] local.DEBUG: task with task_id: 169 already cloned today [2024-03-20 08:50:02] local.DEBUG: task with task_id: 170 already cloned today [2024-03-20 22:48:37] 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":"Joy77@gmail.com","name":"Joy 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 Joy Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Clean up the playroom<\\/li>\\n <li><strong>Assigned By:<\\/strong> Joshua 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-03-20 22:48:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fd34b350-e70b-11ee-a154-525400ae9113.18e5e0d5b05","object":"email"} [2024-03-20 22:50:22] local.INFO: it is a global product so preapproving this product. [2024-03-20 22:50:22] local.ERROR: not enough balance to purchase the product [2024-03-21 05:34: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> Walk a mile clone 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-03-21 05:34:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b1d51bf0-e744-11ee-a154-525400ae9113.18e5f80fb2f","object":"email"} [2024-03-21 05:34: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 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 John Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Walk a mile clone 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-03-21 05:34:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b2052ca0-e744-11ee-ac1d-525400d6cd4f.18e5f80fc6a","object":"email"} [2024-03-21 05:34: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":"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> Walk a mile clone 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-03-21 05:34:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b2334180-e744-11ee-a154-525400ae9113.18e5f80fd98","object":"email"} [2024-03-21 06:08:40] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:11:35] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:11:35] local.ERROR: not enough balance to purchase the product [2024-03-21 06:11:35] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:11:35] local.ERROR: not enough balance to purchase the product [2024-03-21 06:11:40] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:11:40] local.ERROR: not enough balance to purchase the product [2024-03-21 06:11:40] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:11:40] local.ERROR: not enough balance to purchase the product [2024-03-21 06:24:21] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:24:21] local.ERROR: not enough balance to purchase the product [2024-03-21 06:24:57] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:24:57] local.ERROR: not enough balance to purchase the product [2024-03-21 06:36:51] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:36:51] local.ERROR: not enough balance to purchase the product [2024-03-21 06:37:23] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:37:23] local.ERROR: not enough balance to purchase the product [2024-03-21 06:37:38] local.INFO: it is a global product so preapproving this product. [2024-03-21 06:37:38] local.ERROR: not enough balance to purchase the product [2024-03-21 06:39: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":"john@gmail.com","name":"John 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 John Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task<\\/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-03-21 06:39:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b383ee50-e74d-11ee-bc0a-525400d4bb1c.18e5fbc01b5","object":"email"} [2024-03-21 06:39: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":"john@gmail.com","name":"John 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 John Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task<\\/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-03-21 06:39:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b3b118d0-e74d-11ee-99c0-5254000b1a0e.18e5fbc02dd","object":"email"} [2024-03-21 06:40: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":"john@gmail.com","name":"John 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 John Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Java Assignment<\\/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-03-21 06:40:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.dd1f5420-e74d-11ee-a154-525400ae9113.18e5fbd1262","object":"email"} [2024-03-21 06:40: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":"john@gmail.com","name":"John 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 John Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Java Assignment<\\/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-03-21 06:40:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.dd4c5790-e74d-11ee-8140-52540064429e.18e5fbd1389","object":"email"} [2024-03-21 06:44: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":"jerry@gmail.com","name":"jerry@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 jerry@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"RXswift Programming\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: RXswift Programming<\\/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-03-21 06:44:04] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6871d520-e74e-11ee-99c0-5254000b1a0e.18e5fc0a372","object":"email"} [2024-03-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-03-21 14:15: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":"Joy77@gmail.com","name":"Joy 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 Joy Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test Snack<\\/li>\\n <li><strong>Assigned By:<\\/strong> Joshua 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-03-21 14:15:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6d863120-e78d-11ee-8140-52540064429e.18e615da532","object":"email"} [2024-03-21 14:31:14] local.DEBUG: Product Image Details: Array ( [product_id] => 157 [image_name] => 2920890931711031474.png ) [2024-03-21 18:13: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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>85875<\\/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-03-21 18:13:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c420e540-e7ae-11ee-80e5-525400fa05f6.18e62382194","object":"email"} [2024-03-21 18:14: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Aman Kumar,<\\/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-03-21 18:14:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d79f9670-e7ae-11ee-a154-525400ae9113.18e6238a157","object":"email"} [2024-03-21 18:15: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":"amanchild@gmail.com","name":"amanchild@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 amanchild@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: Aman Kumar<\\/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-03-21 18:15:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f5ffeca0-e7ae-11ee-80e5-525400fa05f6.18e6239686a","object":"email"} [2024-03-21 18:27:27] local.DEBUG: Product Image Details: Array ( [product_id] => 158 [image_name] => 8671013621711045647.png ) [2024-03-21 18:35: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task for bottle - clean room<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 18:35:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d50b2890-e7b1-11ee-bc0a-525400d4bb1c.18e624c3999","object":"email"} [2024-03-21 18:51: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task for bottle - clean room<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 18:51:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1504cdf0-e7b4-11ee-8c1d-5254004d4100.18e625af84f","object":"email"} [2024-03-21 18:53: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task for bottle - clean room<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 18:53:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6036d5c0-e7b4-11ee-80e5-525400fa05f6.18e625ce51c","object":"email"} [2024-03-21 19:10: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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 for bottle - clean room<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-21 19:10:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ba98e330-e7b6-11ee-ac1d-525400d6cd4f.18e626c50e3","object":"email"} [2024-03-21 19:15:10] local.DEBUG: Review allowed to UserId: 110 for ClaimId:3, Reason: User is the owner of the group, and task belongs to the same group [2024-03-21 19:15: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":"amanchild@gmail.com","name":"Aman Child"}}],"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 Aman Child,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task for bottle - clean room<\\/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-03-21 19:15:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.565fbb90-e7b7-11ee-a154-525400ae9113.18e62704dc9","object":"email"} [2024-03-21 19:17:51] 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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test no review - clean room for bottle<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 19:17:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b678de30-e7b7-11ee-b89a-525400f92481.18e6272c393","object":"email"} [2024-03-21 19:18: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test no review - clean room for bottle<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 19:18:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cd7cbe80-e7b7-11ee-b89a-525400f92481.18e62735a68","object":"email"} [2024-03-21 19:20: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Review needed - task for bottle<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 19:20:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.11840ed0-e7b8-11ee-8c1d-5254004d4100.18e6275183d","object":"email"} [2024-03-21 19:20:51] 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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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 no review - clean room for bottle<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-21 19:20:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.21c59660-e7b8-11ee-a154-525400ae9113.18e627582c6","object":"email"} [2024-03-21 19:22: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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> Review needed - task for bottle<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-21 19:22:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.61a58420-e7b8-11ee-99c0-5254000b1a0e.18e62772562","object":"email"} [2024-03-21 19:26: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Task with reward - no review<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 19:26:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.dd63d490-e7b8-11ee-9589-525400103106.18e627a5059","object":"email"} [2024-03-21 19:27: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Task with reward - review needed<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 19:27:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.00fef920-e7b9-11ee-9589-525400103106.18e627b39b2","object":"email"} [2024-03-21 19:27:42] 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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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 with reward - no review<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-21 19:27:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.16bdfd60-e7b9-11ee-ac1d-525400d6cd4f.18e627bc836","object":"email"} [2024-03-21 19:27: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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 with reward - review needed<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-21 19:27:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1f478190-e7b9-11ee-9589-525400103106.18e627c0029","object":"email"} [2024-03-21 19:34:51] local.DEBUG: Product Image Details: Array ( [product_id] => 159 [image_name] => 15187754141711049691.png ) [2024-03-21 19:35:50] local.DEBUG: Product Image Details: Array ( [product_id] => 160 [image_name] => 8830519801711049750.png ) [2024-03-21 20:49: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":"amanchild@gmail.com","name":"Aman 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 Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Read Macbeth - within a week<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/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-03-21 20:49:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.71e56791-e7c4-11ee-99c0-5254000b1a0e.18e62c63489","object":"email"} [2024-03-21 20:49: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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> Read Macbeth - within a week<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-21 20:49:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8d3d38b0-e7c4-11ee-8140-52540064429e.18e62c6e7bb","object":"email"} [2024-03-21 20:50:13] local.DEBUG: Review allowed to UserId: 110 for ClaimId:8, Reason: User is the owner of the group, and task belongs to the same group [2024-03-21 20:50: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":"amanchild@gmail.com","name":"Aman Child"}}],"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 Aman Child,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Read Macbeth - within a week<\\/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-03-21 20:50:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9daa8b30-e7c4-11ee-8c1d-5254004d4100.18e62c75363","object":"email"} [2024-03-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-03-22 07:29: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":"johnsev@gmail.com","name":"john"}}],"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,<\\/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;\\">82050<\\/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-03-22 07:29:33] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.edbf58e0-e81d-11ee-80e5-525400fa05f6.18e6510a56e","object":"email"} [2024-03-22 07:35: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":"johndev1@gmail.com","name":"john dev1"}}],"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 dev1,<\\/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;\\">53028<\\/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-03-22 07:35:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cacf4bf0-e81e-11ee-99c0-5254000b1a0e.18e65164e2f","object":"email"} [2024-03-22 07:37: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":"johndev2@gmail.com","name":"john"}}],"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,<\\/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;\\">45105<\\/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-03-22 07:37:21] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.04be13a0-e81f-11ee-ac1d-525400d6cd4f.18e6517c9da","object":"email"} [2024-03-22 07:37: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":"johnde2@gmail.com","name":"john"}}],"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,<\\/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;\\">94463<\\/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-03-22 07:37:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.12787b20-e81f-11ee-a154-525400ae9113.18e651823d2","object":"email"} [2024-03-22 07:40: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":"john1@gmail.com","name":"jihn"}}],"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 jihn,<\\/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;\\">48417<\\/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-03-22 07:40:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7a589540-e81f-11ee-99c0-5254000b1a0e.18e651acc94","object":"email"} [2024-03-22 09:05: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":"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> Walk a mile clone test<\\/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-03-22 09:05:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.49add1b0-e82b-11ee-80e5-525400fa05f6.18e6568324b","object":"email"} [2024-03-22 10:12:12] local.DEBUG: Review allowed to UserId: 30 for ClaimId:9, Reason: User is the owner of the group, and task belongs to the same group [2024-03-22 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":"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> Walk a mile clone test<\\/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-03-22 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.a6734660-e834-11ee-80e5-525400fa05f6.18e65a58dc6","object":"email"} [2024-03-22 11:15: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":"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> Walk a mile clone test<\\/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-03-22 11:15:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.75670940-e83d-11ee-a154-525400ae9113.18e65df47d4","object":"email"} [2024-03-22 11:15:57] local.DEBUG: Review allowed to UserId: 30 for ClaimId:10, Reason: User is the owner of the group, and task belongs to the same group [2024-03-22 11:15: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 Smith"}}],"subject":"Task Rejected","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 Rejected<\\/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: #e74c3c; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Rejected<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>We regret to inform you that the task assigned to you has been rejected by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Walk a mile clone test<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for your understanding.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #e74c3c; 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-03-22 11:15:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8e6b4d70-e83d-11ee-80e5-525400fa05f6.18e65dfebc7","object":"email"} [2024-03-23 06:14:59] 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> Flair<\\/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-03-23 06:14:59] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ad7d4021-e8dc-11ee-ac1d-525400d6cd4f.18e69f2bd1d","object":"email"} [2024-03-23 06:38: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":"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> Myfirst v2 tas<\\/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-03-23 06:38:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fe2b84c0-e8df-11ee-80e5-525400fa05f6.18e6a08770c","object":"email"} [2024-03-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-03-23 09:40: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-03-23 09:40: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-03-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-03-23 09:40: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-03-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-03-23 09:40: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-03-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-03-23 09:43: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-03-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-03-23 09:43: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-03-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-03-23 09:43: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-03-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-03-23 09:45: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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09:47: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-03-23 09: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 09:48: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-03-23 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-03-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-03-23 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-03-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-03-23 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-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 09:49: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-03-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-03-23 09:49: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-03-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-03-23 09:49: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-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 09: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-03-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-03-23 09: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-03-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-03-23 09: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-03-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-03-23 09:49: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-03-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-03-23 09:49: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-03-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-03-23 09:49: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-03-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-03-23 09: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09:50: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-03-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-03-23 09:50: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-03-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-03-23 09:50: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-03-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-03-23 09:52:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 09:52:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09:54:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 09:54:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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-03-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-03-23 09: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-03-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-03-23 09: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-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09: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` = ?) 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-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-03-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-03-23 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-23 09: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` = ?) 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-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-23 09: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09:55: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`.`expires_on` > '2024-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 09:57:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 09:57:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 09:57:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-03-23 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:04: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-03-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-03-23 10:04: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-03-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-03-23 10:04: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-03-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-03-23 10: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-03-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-03-23 10: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-03-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-03-23 10: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-03-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-03-23 10:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 10:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-03-23 10:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 10:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-03-23 10:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 10:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-03-23 10:14:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-03-23 10:14:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`status` = ? and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:28:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:28:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:28: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-03-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-03-23 10:28: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-03-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-03-23 10:28: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-03-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-03-23 10:28:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:28:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:28:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10:28:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:28:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:28:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:28:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:29:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:29:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10:29:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:29:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:29:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10:29:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:29:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-23 10:29:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:29:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:29:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 10:29:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 10:30:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10:30:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:43: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-03-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-03-23 10:43: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-03-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-03-23 10:43: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-03-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-03-23 10:43: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-03-23 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:46: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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:53: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-03-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-03-23 10:53: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-03-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-03-23 10:53: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-03-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-03-23 10:54: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-03-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-03-23 10:54: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-03-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-03-23 10:54: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-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 10:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 10:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 10:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 10:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:04:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:04:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:06:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:06:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:06:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:06:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:15:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11: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-03-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-03-23 11: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-03-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-03-23 11: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-03-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-03-23 11:17:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:17:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:17: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-03-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-03-23 11:17: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-03-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-03-23 11:17: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-03-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-03-23 11:17:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:17:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:17:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:17:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:17:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:17:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 11:17:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:17:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:17:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:17:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:17: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-03-23 11:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:19: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-03-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-03-23 11:19: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-03-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-03-23 11:19: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-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 11:21: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-03-23 11:21: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-03-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-03-23 11:21: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-03-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-03-23 11:21: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-03-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-03-23 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 11: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:26: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-03-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-03-23 11:29:03] local.ERROR: exception occured while adding task: Attempt to read property "goal_id" on null [2024-03-23 11:29:03] 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/Http/Controllers/Api/V2/V2ParentController.php(216): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #40 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #41 {main} [2024-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 11:34: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-03-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-03-23 11:34: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-03-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-03-23 11:34: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-03-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-03-23 11:34: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-03-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-03-23 11:34: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-03-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-03-23 11:34: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-03-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-03-23 11: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 11: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-03-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-03-23 11: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-03-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-03-23 11: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-03-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-03-23 11:35:24] local.ERROR: exception occured while adding task: Attempt to read property "goal_id" on null [2024-03-23 11:35:24] 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/Http/Controllers/Api/V2/V2ParentController.php(216): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #40 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #41 {main} [2024-03-23 11:35:44] local.DEBUG: Product Image Details: Array ( [product_id] => 164 [image_name] => 20668452701711193744.png ) [2024-03-23 11:35: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-03-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-03-23 11:35: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-03-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-03-23 11:35: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-03-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-03-23 11:35: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-03-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-03-23 11:35: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-03-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-03-23 11:35: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-03-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-03-23 11:36: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":"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> play holi<\\/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-03-23 11:36:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.87e45650-e909-11ee-ac1d-525400d6cd4f.18e6b18b035","object":"email"} [2024-03-23 11:36: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":"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> play holi<\\/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-03-23 11:36:04] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8811a7e0-e909-11ee-a154-525400ae9113.18e6b18b15e","object":"email"} [2024-03-23 11:36: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-03-23 11:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:36:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:36:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:36:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:36:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:36:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:36:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:01] local.INFO: it is a global product so preapproving this product. [2024-03-23 11:37:01] local.ERROR: not enough balance to purchase the product [2024-03-23 11:37:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:37:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:37:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:37:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:23] local.INFO: it is a global product so preapproving this product. [2024-03-23 11:37:23] local.ERROR: not enough balance to purchase the product [2024-03-23 11:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:37:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:37:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:37:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:37:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:37:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11: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-03-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-03-23 11: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-03-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-03-23 11: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-03-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-03-23 11:37:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:37:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:37:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:38:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:38:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:38:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-23 11:38:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:39:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:39:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:39:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:39:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:39:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:39:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:39:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:39:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:39:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:42:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:42:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:42:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:42:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:42:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:42:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:42:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:53:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 11:53:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 11:53:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 11:53:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:53:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 11:53:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 11:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 11:54: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-03-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-03-23 11:54: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-03-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-03-23 11:54: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-03-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-03-23 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 12:10: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-03-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-03-23 12:10: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-03-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-03-23 12:10: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-03-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-03-23 12:10: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-03-23 12:11:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 12:14: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-03-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-03-23 12:14: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-03-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-03-23 12:14: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-03-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-03-23 12:14: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-03-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-03-23 12:14: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-03-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-03-23 12:14: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-03-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-03-23 12:15: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-03-23 12:15:44] local.DEBUG: Product Image Details: Array ( [product_id] => 165 [image_name] => 6514747941711196144.png ) [2024-03-23 12:15: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-03-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-03-23 12:15: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-03-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-03-23 12:15: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-03-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-03-23 12:15:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:15:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:15:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:15:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:15:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:18:40] local.DEBUG: Product Image Details: Array ( [product_id] => 166 [image_name] => 18195496011711196320.png ) [2024-03-23 12:18:40] local.DEBUG: Product Image Details: Array ( [product_id] => 166 [image_name] => 2144291851711196320.png ) [2024-03-23 12: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-03-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-03-23 12: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-03-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-03-23 12: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-03-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-03-23 12:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:18:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:19:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:19:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:19:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:19:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:19:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:19:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:19:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:19:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:19:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:19:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:19:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:19:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:19:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:19:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:19:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:19:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 12:23: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-03-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-03-23 12:23: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-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 12:23: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-03-23 12:23: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-03-23 12:23: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-03-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-03-23 12:23: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-03-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-03-23 12:23: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-03-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-03-23 12:24:34] local.DEBUG: Product Image Details: Array ( [product_id] => 167 [image_name] => 1108063941711196674.png ) [2024-03-23 12:24: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-03-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-03-23 12:24: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-03-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-03-23 12:24: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-03-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-03-23 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:24:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:35: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-03-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-03-23 12:35: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-03-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-03-23 12:35: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-03-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-03-23 12:35: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-03-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-03-23 12:35: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-03-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-03-23 12:35: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-03-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-03-23 12:35: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`.`expires_on` > '2024-03-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-03-23 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 12:36: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-03-23 12:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:36: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-03-23 12:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:36: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-03-23 12:37:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 12:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 12:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 12:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 12:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 12:38: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":"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> task test11<\\/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-03-23 12:38:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.30f4b250-e912-11ee-ac1d-525400d6cd4f.18e6b5171f5","object":"email"} [2024-03-23 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 12:56: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-03-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-03-23 12:56: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-03-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-03-23 12:56: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-03-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-03-23 12:59: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-03-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-03-23 12:59: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-03-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-03-23 12:59: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-03-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-03-23 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 13:21: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-03-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-03-23 13:21: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-03-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-03-23 13:21: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-03-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-03-23 13: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 13: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 13: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 13:40: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-03-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-03-23 13:40: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-03-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-03-23 13:40: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-03-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-03-23 13:40: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-03-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-03-23 13:40: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-03-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-03-23 13:40: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-03-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-03-23 14:00:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:00:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:00:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 14:00:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:00:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 14:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 14:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 14:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 14:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 14:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 14:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:02:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:02:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 14:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 14:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:28:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:28:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:28:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 14:28:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:28:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 14:28:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:28:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:28:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 14:28:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 14:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 14:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-22' 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-03-23 14:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:28:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 14:28:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 14:28:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 15: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 15:15: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-03-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-03-23 15:15: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-03-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-03-23 15:15: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-03-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-03-23 15:16: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-03-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-03-23 15:16: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-03-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-03-23 15:16: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-03-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-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 15:18: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-03-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-03-23 15:18: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-03-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-03-23 15:18: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-03-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-03-23 15:18:14] 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-03-23 15: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 15:18: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-03-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-03-23 15:18: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-03-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-03-23 15:18: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-03-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-03-23 15:18: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-03-23 15: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-03-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-03-23 15: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-03-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-03-23 15: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-03-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-03-23 15:18: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-03-23 15: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-03-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-03-23 15: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-03-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-03-23 15: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-03-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-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 15: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 15:56: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-03-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-03-23 15:56: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-03-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-03-23 15:56: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-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19:53: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-03-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-03-23 19:53: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-03-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-03-23 19:53: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-03-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-03-23 19:54: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-03-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-03-23 19:54: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-03-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-03-23 19:54: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-03-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-03-23 19: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 19:54: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-03-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-03-23 19:54: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-03-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-03-23 19:54: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-03-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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 19: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 20:11:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:11:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:11:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:11:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:14: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-03-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-03-23 20:14: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-03-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-03-23 20:14: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-03-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-03-23 20: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_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-23 20:15: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-03-23 20:15: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-03-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-03-23 20:15: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-03-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-03-23 20:15: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-03-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-03-23 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-03-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-03-23 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-03-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-03-23 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-03-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-03-23 20: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`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-03-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-03-23 20:17: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-03-23 20:17: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-03-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-03-23 20:17: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-03-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-03-23 20:17: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-03-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-03-23 20:20:37] 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":"Joshua 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 Joshua Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> clean playroom<\\/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-03-23 20:20:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d015e530-e952-11ee-99c0-5254000b1a0e.18e6cf8f303","object":"email"} [2024-03-23 20:20:38] local.ERROR: exception occured while adding task: Could not parse 'null': Failed to parse time string (null) at position 0 (n): The timezone could not be found in the database [2024-03-23 20:20:38] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(216): Carbon\Carbon::rawParse() #1 /home/o5t6x7pgljbm/public_html/admin/app/Libraries/Helpers.php(143): Carbon\Carbon::parse() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(31): App\Libraries\Helpers::dateDiffForHumans() #3 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(263): App\V2\Resources\TaskResource->fromTasktoArray() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #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/ConvertEmptyStringsToNull.php(31): 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\ConvertEmptyStringsToNull->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): 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\PreventRequestsDuringMaintenance->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #42 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #43 {main} [2024-03-23 20:20: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":"jsamuel.com@gmail.com","name":"Joshua 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 Joshua Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> clean playroom<\\/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-03-23 20:20:48] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d5fd4740-e952-11ee-ac1d-525400d6cd4f.18e6cf919b4","object":"email"} [2024-03-23 20:20:48] local.ERROR: exception occured while adding task: Could not parse 'null': Failed to parse time string (null) at position 0 (n): The timezone could not be found in the database [2024-03-23 20:20:48] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(216): Carbon\Carbon::rawParse() #1 /home/o5t6x7pgljbm/public_html/admin/app/Libraries/Helpers.php(143): Carbon\Carbon::parse() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(31): App\Libraries\Helpers::dateDiffForHumans() #3 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(263): App\V2\Resources\TaskResource->fromTasktoArray() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #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/ConvertEmptyStringsToNull.php(31): 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\ConvertEmptyStringsToNull->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): 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\PreventRequestsDuringMaintenance->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #42 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #43 {main} [2024-03-23 20:21:16] 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":"Joshua 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 Joshua Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> clean playroom<\\/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-03-23 20:21:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e73b3030-e952-11ee-ac1d-525400d6cd4f.18e6cf98ab3","object":"email"} [2024-03-23 20:23:54] local.DEBUG: Product Image Details: Array ( [product_id] => 168 [image_name] => 3525291561711225433.png ) [2024-03-23 20: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-03-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-03-23 20: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-03-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-03-23 20: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-03-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-03-23 20:24:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:24:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:24:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:24:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:24:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 20: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":"kaijahsamuel@gmail.com","name":"Kaijah Samuel"}}],"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 Kaijah Samuel,<\\/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> clean playroom<\\/li>\\n <li><strong>Assigned To:<\\/strong> Joshua 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-03-23 20:26:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9fb0b720-e953-11ee-80e5-525400fa05f6.18e6cfe4392","object":"email"} [2024-03-23 20:27:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:27:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 20:27:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 20:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 20:54:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 20:54:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 20:54:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 20:54:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 20:54:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:04:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:04:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 21:04:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 21:04:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 21:04:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 21:04:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 21:04:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:04:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 21:04:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:04:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 21:04:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:04:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:05:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 21:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-23 21:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-23 21:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-22' 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-03-23 21:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 21:05:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-23 21:05:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-23 21:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-23 21: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-03-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-03-23 21: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-03-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-03-23 21: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-03-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-03-23 21:06:19] local.DEBUG: Review allowed to UserId: 156 for ClaimId:13, Reason: User is the owner of the group, and task belongs to the same group [2024-03-23 21:06: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":"jsamuel.com@gmail.com","name":"Joshua Samuel"}}],"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 Joshua Samuel,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> clean playroom<\\/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-03-23 21:06:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.323a8080-e959-11ee-9589-525400103106.18e6d22c888","object":"email"} [2024-03-23 21:06: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-03-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-03-23 21:06: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-03-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-03-23 21:06: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-03-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-03-23 21: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-24 04: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04:43: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-03-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-03-24 04:43: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-03-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-03-24 04:43: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-03-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-03-24 04:43: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-03-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-03-24 04:43: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-03-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-03-24 04:43: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-03-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-03-24 04: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-03-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-03-24 04: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-03-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-03-24 04: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-03-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-03-24 04:43:12] 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-03-24 04: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04:43:14] 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-03-24 04: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 04: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 12:25: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-03-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-03-24 12:25: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-03-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-03-24 12:25: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-03-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-03-24 12:25: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-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 12:27: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":"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: Duryodhan<\\/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-03-24 12:27:45] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.eaf67720-e9d9-11ee-a154-525400ae9113.18e706e5f92","object":"email"} [2024-03-24 12:28: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-03-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-03-24 12:28: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-03-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-03-24 12:28: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-03-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-03-24 12:28: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-03-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-03-24 12:28: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-03-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-03-24 12:28: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-03-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-03-24 12:28:42] 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: Keval Patel<\\/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-03-24 12:28:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0d5439b0-e9da-11ee-80e5-525400fa05f6.18e706f40cb","object":"email"} [2024-03-24 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:30:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:30:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:30:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:30:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:30:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:30:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:30:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:30:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:30:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:30:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-24 12:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-24 12:31: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-03-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-03-24 12:31: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-03-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-03-24 12:31: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-03-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-03-24 12: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-03-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-03-24 12: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-03-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-03-24 12: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-03-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-03-24 12:32:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:32:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:32:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:32:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:32:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12:32:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-24 12:32:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-24 12:32:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-24 12:32:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-23' 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-03-24 12:32:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-24 12: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-03-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-03-24 12: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-03-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-03-24 12: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-03-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-03-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-03-25 18:21: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-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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-03-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-03-25 18: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-03-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-03-25 18: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-03-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-03-25 18:22: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-03-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-03-25 18:22: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-03-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-03-25 18:22: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-03-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-03-25 18:22: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-03-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-03-25 18:22: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-03-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-03-25 18:22: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-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-25 18: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 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-03-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-03-26 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-03-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-03-26 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-03-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-03-26 00: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 00: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 00: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 00: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 00: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 00: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 00:40: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-03-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-03-26 00:40: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-03-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-03-26 00:40: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-03-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-03-26 00:47: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-03-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-03-26 00:47: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-03-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-03-26 00:47: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-03-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-03-26 02:10: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-03-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-03-26 02:10: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-03-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-03-26 02:10: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-03-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-03-26 02:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 02:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 02:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 02:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 02:22:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 02:22:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 02:22:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 02:22:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 02:23: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-03-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-03-26 02:23: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-03-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-03-26 02:23: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-03-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-03-26 02: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 02:24: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-03-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-03-26 02:24: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-03-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-03-26 02:24: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-03-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-03-26 02: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 02:27: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-03-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-03-26 02:27: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-03-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-03-26 02:27: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-03-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-03-26 02:28: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-03-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-03-26 02:28: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-03-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-03-26 02:28: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-03-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-03-26 02: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02:32: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-03-26 02: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-03-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-03-26 02: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-03-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-03-26 02: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-03-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-03-26 02:43:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 02:43:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 02:43:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 02:43:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 02: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-03-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-03-26 02: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-03-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-03-26 02: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-03-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-03-26 02:48: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-03-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-03-26 02:48: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-03-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-03-26 02:48: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-03-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-03-26 02:50: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-03-26 02: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02:50:37] 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-03-26 02:50: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-03-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-03-26 02:50: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-03-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-03-26 02:50: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-03-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-03-26 02: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 02: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02:56: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-03-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-03-26 02:56: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-03-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-03-26 02:56: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-03-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-03-26 02:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 02:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 02:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 02:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 02: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 02:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 02:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 02:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 02:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:02:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:02:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:02:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:02:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:03:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 03:03:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:04:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:04:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:04:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:04:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:04:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:04:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:04:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:04:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:04:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 03:04:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:05:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:05:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:05:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:05:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:10:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:10:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:10:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:10:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:10: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-03-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-03-26 03:10: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-03-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-03-26 03:10: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-03-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-03-26 03:10: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-03-26 03:10: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-03-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-03-26 03:10: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-03-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-03-26 03:10: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-03-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-03-26 03: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` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 03:11: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-03-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-03-26 03:11: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-03-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-03-26 03:11: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-03-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-03-26 03:11: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-03-26 03:11: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-03-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-03-26 03:11: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-03-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-03-26 03:11: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-03-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-03-26 03:11: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-03-26 03:11: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-03-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-03-26 03:11: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-03-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-03-26 03:11: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-03-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-03-26 03:11: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-03-26 03: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 03: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 03: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 03:17:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 03:17:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:17:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:17:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:17:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:17:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:19:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 03:19:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:19:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:19:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:19:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:19:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 03:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 03: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 03: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 03:32:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:32:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:32:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:32:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:47: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-03-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-03-26 03:47: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-03-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-03-26 03:47: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-03-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-03-26 03:47: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-03-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-03-26 03:47: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-03-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-03-26 03:47: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-03-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-03-26 03:48: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":"Joy77@gmail.com","name":"Joy 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 Joy Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Go to school everyday for 3 months<\\/li>\\n <li><strong>Assigned By:<\\/strong> Joshua 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-03-26 03:48:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b84cd5d0-eb23-11ee-9589-525400103106.18e78dfc3ad","object":"email"} [2024-03-26 03: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` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 03:48: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-03-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-03-26 03:48: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-03-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-03-26 03:48: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-03-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-03-26 03:48:46] 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-03-26 03:48: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-03-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-03-26 03:48: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-03-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-03-26 03:48: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-03-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-03-26 03:48:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:48:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:48:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:48:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 03: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 03: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 03:49:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 03:49:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 03:49:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 03:49:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 03:50: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":"Joy77@gmail.com","name":"Joy 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 Joy Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Stand in top 3 position in your class<\\/li>\\n <li><strong>Assigned By:<\\/strong> Joshua 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-03-26 03:50:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.07115330-eb24-11ee-8140-52540064429e.18e78e1c7e3","object":"email"} [2024-03-26 03: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-03-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-03-26 03: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-03-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-03-26 03: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-03-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-03-26 03:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 03:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 05: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-03-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-03-26 05: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-03-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-03-26 05: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-03-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-03-26 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 05:50: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-03-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-03-26 05:50: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-03-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-03-26 05:50: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-03-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-03-26 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 05:55: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-03-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-03-26 05:55: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-03-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-03-26 05:55: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-03-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-03-26 06: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`.`expires_on` > '2024-03-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-03-26 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-26 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-26 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-26 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-26 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 06:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 06:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 06:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 06:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 06:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 06:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 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-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:14: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-03-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-03-26 07:14: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-03-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-03-26 07:14: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-03-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-03-26 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 07:18: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-03-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-03-26 07:18: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-03-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-03-26 07:18: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-03-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-03-26 07:19:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:19:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:19:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:19:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:19:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:19:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:19:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:19:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07: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-03-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-03-26 07: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-03-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-03-26 07: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-03-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-03-26 07:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:21:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:21:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:21:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:21:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:21:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 07:21:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:21:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:21:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:21:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:21:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:23: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":"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> play holi<\\/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-03-26 07:23:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c1e4c120-eb41-11ee-8140-52540064429e.18e79a49e32","object":"email"} [2024-03-26 07:23: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":"kartik.gosiya.pro@gmail.com","name":"Dhara"}}],"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 Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> play holi<\\/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-03-26 07:23:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c212d600-eb41-11ee-80e5-525400fa05f6.18e79a49f60","object":"email"} [2024-03-26 07:23: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":"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> play holi<\\/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-03-26 07:23:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c3c93890-eb41-11ee-8c1d-5254004d4100.18e79a4aa99","object":"email"} [2024-03-26 07:23: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":"kartik.gosiya.pro@gmail.com","name":"Dhara"}}],"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 Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> play holi<\\/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-03-26 07:23:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c3f74d70-eb41-11ee-8140-52540064429e.18e79a4abc7","object":"email"} [2024-03-26 07:31:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:31:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:31:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:31:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:33: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":"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> Walk a mile<\\/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-03-26 07:33:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.16b1c7b0-eb43-11ee-8140-52540064429e.18e79ad57ab","object":"email"} [2024-03-26 07:33:34] local.DEBUG: Review allowed to UserId: 87 for ClaimId:2, Reason: User is the owner of the group, and task belongs to the same group [2024-03-26 07:33: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":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Rejected","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 Rejected<\\/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: #e74c3c; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Rejected<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>We regret to inform you that the task assigned to you has been rejected by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Understand a map<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for your understanding.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #e74c3c; 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-03-26 07:33:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.27297a70-eb43-11ee-a154-525400ae9113.18e79adc397","object":"email"} [2024-03-26 07:33:38] local.DEBUG: Review allowed to UserId: 87 for ClaimId:1, Reason: User is the owner of the group, and task belongs to the same group [2024-03-26 07:33: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":"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> Walk a mile<\\/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-03-26 07:33:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.29945ff0-eb43-11ee-99c0-5254000b1a0e.18e79add36f","object":"email"} [2024-03-26 07:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 07:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:35:42] 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> Play holi again<\\/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-03-26 07:35:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7393b420-eb43-11ee-a154-525400ae9113.18e79afb862","object":"email"} [2024-03-26 07:35:42] 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> Play holi again<\\/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-03-26 07:35:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.73c153d0-eb43-11ee-8140-52540064429e.18e79afb98d","object":"email"} [2024-03-26 07:36:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 07:36:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 07:36:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 07:36:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 07:39: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 07:39: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 10:22:02] 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 `created_at` desc [2024-03-26 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 10:22:02] 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 `created_at` desc [2024-03-26 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 10:22:02] 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 `created_at` desc [2024-03-26 10:25: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`.`expires_on` > '2024-03-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-03-26 10:25:42] 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 `created_at` desc [2024-03-26 10: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`.`expires_on` > '2024-03-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-03-26 10:25:42] 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 `created_at` desc [2024-03-26 10:26: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-03-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-03-26 10:26:10] 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 `created_at` desc [2024-03-26 10:26: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-03-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-03-26 10:26:10] 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 `created_at` desc [2024-03-26 10:26: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-03-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-03-26 10:26:10] 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 `created_at` desc [2024-03-26 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`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:26: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-03-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-03-26 10:26:30] 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 `created_at` desc [2024-03-26 10:26: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-03-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-03-26 10:26:30] 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 `created_at` desc [2024-03-26 10:26: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-03-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-03-26 10:26:30] 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 `created_at` desc [2024-03-26 10:26: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`.`expires_on` > '2024-03-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-03-26 10:26:35] 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 `created_at` desc [2024-03-26 10:26: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`.`expires_on` > '2024-03-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-03-26 10:26:35] 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 `created_at` desc [2024-03-26 10:26:40] local.DEBUG: login failed: The password field is required. [2024-03-26 10: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-03-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-03-26 10:27:17] 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 `created_at` desc [2024-03-26 10: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-03-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-03-26 10:27:17] 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 `created_at` desc [2024-03-26 10: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-03-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-03-26 10:27:17] 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 `created_at` desc [2024-03-26 10: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-03-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-03-26 10:27:19] 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 `created_at` desc [2024-03-26 10: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-03-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-03-26 10:27:19] 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 `created_at` desc [2024-03-26 10: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-03-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-03-26 10:27:19] 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 `created_at` desc [2024-03-26 10:30: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-03-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-03-26 10:30:41] 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 `created_at` desc [2024-03-26 10:30: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-03-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-03-26 10:30:41] 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 `created_at` desc [2024-03-26 10:30: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-03-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-03-26 10:30:41] 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 `created_at` desc [2024-03-26 10:30: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:30: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-03-26 10:30: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-03-26 10:41:46] local.DEBUG: login failed: The password field is required. [2024-03-26 10:42:03] local.DEBUG: login failed: The password field is required. [2024-03-26 10:43: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:43: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-03-26 10:43: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-03-26 10:43:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 10:43:12] 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 `created_at` desc [2024-03-26 10:43:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 10:43:12] 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 `created_at` desc [2024-03-26 10:43:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 10:43:12] 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 `updated_at` desc [2024-03-26 10:43:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 10:43:12] 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 `created_at` desc [2024-03-26 10:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-03-26 10:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:43: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10:43: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 10:43:23] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:43:34] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/ClaimService.php(215): App\V2\Services\ClaimService->canClaimTask() #1 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(377): App\V2\Services\ClaimService->createNewClaimForTask() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->create_new_claim_for_task() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #40 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #41 {main} [2024-03-26 10:45:14] 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/V2/Services/ClaimService.php(87): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/ClaimService.php(215): App\V2\Services\ClaimService->canClaimTask() #3 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(377): App\V2\Services\ClaimService->createNewClaimForTask() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->create_new_claim_for_task() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #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/ConvertEmptyStringsToNull.php(31): 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\ConvertEmptyStringsToNull->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): 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\PreventRequestsDuringMaintenance->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #42 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #43 {main} [2024-03-26 10:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-03-26 10:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 10:45: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10:45: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 10:45: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10:45: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 10: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 10:45:50] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:45:54] 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/V2/Services/ClaimService.php(87): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/ClaimService.php(215): App\V2\Services\ClaimService->canClaimTask() #3 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(377): App\V2\Services\ClaimService->createNewClaimForTask() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->create_new_claim_for_task() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #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/ConvertEmptyStringsToNull.php(31): 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\ConvertEmptyStringsToNull->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): 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\PreventRequestsDuringMaintenance->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #42 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #43 {main} [2024-03-26 10:46: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10:46: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 10:47:13] 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/V2/Services/ClaimService.php(87): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/ClaimService.php(215): App\V2\Services\ClaimService->canClaimTask() #3 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(377): App\V2\Services\ClaimService->createNewClaimForTask() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->create_new_claim_for_task() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #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/ConvertEmptyStringsToNull.php(31): 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\ConvertEmptyStringsToNull->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): 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\PreventRequestsDuringMaintenance->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #42 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #43 {main} [2024-03-26 10:48: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":"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> Play holi again<\\/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-03-26 10:48:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.59ae4370-eb5e-11ee-bc0a-525400d4bb1c.18e7a600127","object":"email"} [2024-03-26 10:48:17] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:48: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 10:48: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 10: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10: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-03-26 10: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-03-26 10:53: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:53: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-03-26 10:53: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-03-26 10:53: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-03-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-03-26 10:53:43] 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 `created_at` desc [2024-03-26 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 10:53:44] 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 `created_at` desc [2024-03-26 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 10:53:44] 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 `created_at` desc [2024-03-26 10:55: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 10:55: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-03-26 10:55: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-03-26 10:55: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-03-26 10:55: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-03-26 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 10:59:52] 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 `created_at` desc [2024-03-26 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 10:59:52] 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 `created_at` desc [2024-03-26 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 10:59:52] 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 `created_at` desc [2024-03-26 11:01: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:01: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-03-26 11:01: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-03-26 11:01: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-03-26 11:01:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:01:58] 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 `created_at` desc [2024-03-26 11:01:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:01:58] 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 `created_at` desc [2024-03-26 11:01:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:01:58] 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 `updated_at` desc [2024-03-26 11:01:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:01:58] 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 `created_at` desc [2024-03-26 11:02: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:02: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:05:55] local.DEBUG: login failed: The password field is required. [2024-03-26 11:07:40] local.DEBUG: login failed: The password field is required. [2024-03-26 11:17: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":"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> Play holi again<\\/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-03-26 11:17:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6fc52ee0-eb62-11ee-a154-525400ae9113.18e7a7ac8ce","object":"email"} [2024-03-26 11:17:37] 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> Play holi again<\\/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-03-26 11:17:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.741a7f41-eb62-11ee-99c0-5254000b1a0e.18e7a7ae534","object":"email"} [2024-03-26 11:17: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:17: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:17: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":"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> Play holi again<\\/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-03-26 11:17:55] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7e6ae0c0-eb62-11ee-b89a-525400f92481.18e7a7b28cc","object":"email"} [2024-03-26 11:18: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:18: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:18:11] 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 `created_at` desc [2024-03-26 11:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:18:11] 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 `created_at` desc [2024-03-26 11:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:18:11] 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 `updated_at` desc [2024-03-26 11:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:18:11] 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 `created_at` desc [2024-03-26 11:19: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:19: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:22: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:22: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-03-26 11:22: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-03-26 11:22: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:22: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-03-26 11:22: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-03-26 11:22: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-03-26 11:22: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-03-26 11: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11: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-03-26 11: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-03-26 11:23: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:23: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-03-26 11:23: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-03-26 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11: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` = ?) or (`task_settings`.`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-03-26 11:24: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-03-26 11:24: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 `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-03-26 11:24: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:24: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-03-26 11:24: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-03-26 11:25:30] local.DEBUG: login failed: The password field is required. [2024-03-26 11:26:38] local.DEBUG: login failed: The password field is required. [2024-03-26 11:26:46] local.DEBUG: login failed: The password field is required. [2024-03-26 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 11:31:16] 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 `created_at` desc [2024-03-26 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:31:16] 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 `created_at` desc [2024-03-26 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:31:16] 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 `created_at` desc [2024-03-26 11:36: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-03-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-03-26 11:36:20] 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 `created_at` desc [2024-03-26 11:36: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-03-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-03-26 11:36:20] 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 `created_at` desc [2024-03-26 11:36: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-03-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-03-26 11:36:20] 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 `created_at` desc [2024-03-26 11:40:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 11:40:30] 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 `created_at` desc [2024-03-26 11:40:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:40:30] 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 `created_at` desc [2024-03-26 11:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:40:38] 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 `created_at` desc [2024-03-26 11:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:40:38] 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 `created_at` desc [2024-03-26 11:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:40:38] 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 `updated_at` desc [2024-03-26 11:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:40:38] 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 `created_at` desc [2024-03-26 11:40:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 11:40:42] 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-03-26 11:40:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:40:50] 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 `created_at` desc [2024-03-26 11:40:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:40:50] 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 `created_at` desc [2024-03-26 11:40:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:40:50] 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 `updated_at` desc [2024-03-26 11:40:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:40:50] 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 `created_at` desc [2024-03-26 11:40:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 11:40:52] 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-03-26 11:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:41:02] 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 `created_at` desc [2024-03-26 11:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:41:02] 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 `created_at` desc [2024-03-26 11:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:41:02] 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 `updated_at` desc [2024-03-26 11:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:41:02] 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 `created_at` desc [2024-03-26 11:41: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:41: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:41:24] 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 `created_at` desc [2024-03-26 11:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:41:24] 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 `created_at` desc [2024-03-26 11:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:41:24] 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 `updated_at` desc [2024-03-26 11:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:41:24] 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 `created_at` desc [2024-03-26 11:41:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 11:41:28] 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-03-26 11:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:41:30] 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 `created_at` desc [2024-03-26 11:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:41:30] 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 `created_at` desc [2024-03-26 11:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:41:30] 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 `updated_at` desc [2024-03-26 11:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:41:30] 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 `created_at` desc [2024-03-26 11:41:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 11:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:41:37] 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 `created_at` desc [2024-03-26 11:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:41:37] 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 `created_at` desc [2024-03-26 11:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:41:37] 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 `updated_at` desc [2024-03-26 11:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:41:37] 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 `created_at` desc [2024-03-26 11:41: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:41: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:41: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:41: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 11:42:49] 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 `created_at` desc [2024-03-26 11: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:42:49] 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 `created_at` desc [2024-03-26 11: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:42:49] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 11:48:27] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:48:27] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:48:27] 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 `created_at` desc [2024-03-26 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 11:48:59] 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 `created_at` desc [2024-03-26 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:48:59] 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 `created_at` desc [2024-03-26 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:48:59] 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 `created_at` desc [2024-03-26 11:51:11] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:51:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:51:13] 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 `created_at` desc [2024-03-26 11:51:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:51:13] 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 `created_at` desc [2024-03-26 11:51:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:51:13] 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 `updated_at` desc [2024-03-26 11:51:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:51:13] 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 `created_at` desc [2024-03-26 11:51: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 11:51: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` = ?)) inner join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 11:51:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 11:51:20] 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 `created_at` desc [2024-03-26 11:51:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:51:20] 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 `created_at` desc [2024-03-26 11:58:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 11:58:31] 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 `created_at` desc [2024-03-26 11:58:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 11:58:31] 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 `created_at` desc [2024-03-26 11:58:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 11:58:31] 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 `updated_at` desc [2024-03-26 11:58:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 11:58:31] 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 `created_at` desc [2024-03-26 11:58:47] local.DEBUG: login failed: The device token field is required. [2024-03-26 11:58:50] local.DEBUG: login failed: The device token field is required. [2024-03-26 11:58:57] local.DEBUG: login failed: The device token field is required. [2024-03-26 11:59: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-03-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-03-26 11:59:19] 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 `created_at` desc [2024-03-26 11:59: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-03-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-03-26 11:59:19] 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 `created_at` desc [2024-03-26 11:59: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-03-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-03-26 11:59:19] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 11:59: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-03-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-03-26 11:59:36] 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 `created_at` desc [2024-03-26 11:59: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-03-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-03-26 11:59:36] 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 `created_at` desc [2024-03-26 11:59: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-03-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-03-26 11:59:36] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 11:59:44] 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-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 11:59:54] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:59:54] 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 `created_at` desc [2024-03-26 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 11:59:54] 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 `created_at` desc [2024-03-26 12:00: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-03-26 12:00:00] 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-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:06] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:06] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:06] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 12:00:12] 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-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:18] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:18] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:18] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-26 12:00:23] 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-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:29] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:29] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:00:29] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:01:24] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:01:24] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:01:24] 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 `created_at` desc [2024-03-26 12:03:15] local.DEBUG: login failed: The device token field is required. [2024-03-26 12:03: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-03-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-03-26 12:03:42] 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 `created_at` desc [2024-03-26 12:03: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-03-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-03-26 12:03:42] 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 `created_at` desc [2024-03-26 12:03: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-03-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-03-26 12:03:42] 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 `created_at` desc [2024-03-26 12:17: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-03-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-03-26 12:17:07] 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 `created_at` desc [2024-03-26 12:17: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-03-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-03-26 12:17:07] 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 `created_at` desc [2024-03-26 12:17: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-03-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-03-26 12:17:07] 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 `created_at` desc [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 12:20: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-03-26 12: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-03-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-03-26 12:23:11] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:23:11] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:23:11] 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 `created_at` desc [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 12: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12:23:49] local.DEBUG: task visible_to: GLOBAL [2024-03-26 12:23: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12:23: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-03-26' 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-03-26 12:23: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-03-26 12:23:54] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-03-26 12:24: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-03-26 12:24:26] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-03-26 12:24:26] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-03-26 12:24: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":"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> Global Sample KTK1<\\/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-03-26 12:24:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c95457c0-eb6b-11ee-b89a-525400f92481.18e7ab80f3c","object":"email"} [2024-03-26 12:24: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":"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> Global Sample KTK1<\\/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-03-26 12:24:27] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c9b08180-eb6b-11ee-8140-52540064429e.18e7ab81198","object":"email"} [2024-03-26 12:24: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-03-26 12:24:28] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-03-26 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:24:38] 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 `created_at` desc [2024-03-26 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:24:38] 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 `created_at` desc [2024-03-26 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:24:38] 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 `updated_at` desc [2024-03-26 12:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:24:38] 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 `created_at` desc [2024-03-26 12:24: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12:24: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 12:24: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-03-26 12:24:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 12:25: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12:25: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-03-26 12:25: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-03-26 12:25:06] local.DEBUG: Review Not allowed for UserId: 87 for ClaimId:15, Reason: User is not the owner of the group [2024-03-26 12:25: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-03-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-03-26 12:25:09] 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 `created_at` desc [2024-03-26 12:25: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-03-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-03-26 12:25:09] 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 `created_at` desc [2024-03-26 12:25: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-03-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-03-26 12:25:09] 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 `created_at` desc [2024-03-26 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` = ?) 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 12:30:36] 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-03-26 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` = ?) 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-26 12:30:43] 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-03-26 12:30: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`.`expires_on` > '2024-03-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-03-26 12:30:44] 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 `created_at` desc [2024-03-26 12:30: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`.`expires_on` > '2024-03-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-03-26 12:30:44] 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 `created_at` desc [2024-03-26 12:30: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-03-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-03-26 12:30:46] 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 `created_at` desc [2024-03-26 12:30: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-03-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-03-26 12:30:46] 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 `created_at` desc [2024-03-26 12:30: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-03-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-03-26 12:30:46] 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 `created_at` desc [2024-03-26 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 12:31: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-03-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-03-26 12:31:07] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:07] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:07] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 12:31:11] 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-03-26 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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-26 12:31:17] 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-03-26 12:31: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-03-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-03-26 12:31:21] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:21] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:21] 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 `created_at` desc [2024-03-26 12: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-03-26 12:31:24] 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-03-26 12:31: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-03-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-03-26 12:31:25] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:25] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:25] 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 `created_at` desc [2024-03-26 12:31: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12:31: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-03-26 12:31: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-03-26 12:31: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-03-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-03-26 12:31:33] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:33] 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 `created_at` desc [2024-03-26 12:31: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-03-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-03-26 12:31:33] 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 `created_at` desc [2024-03-26 12:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:31: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 `created_at` desc [2024-03-26 12:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:31: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 `created_at` desc [2024-03-26 12:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:31: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 `updated_at` desc [2024-03-26 12:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:31: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 `created_at` desc [2024-03-26 12:33:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 12:33:43] 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 `created_at` desc [2024-03-26 12:33:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:33:43] 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 `created_at` desc [2024-03-26 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:33:44] 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 `created_at` desc [2024-03-26 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:33:44] 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 `created_at` desc [2024-03-26 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:33:44] 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 `updated_at` desc [2024-03-26 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:33:44] 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 `created_at` desc [2024-03-26 12:34: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12:34: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-03-26 12:34: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-03-26 12:34:16] local.DEBUG: Review allowed to UserId: 87 for ClaimId:15, Reason: User is the owner of the group, and claim is also in the same group [2024-03-26 12:34:16] 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> Global Sample KTK1<\\/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-03-26 12:34:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.28f17720-eb6d-11ee-ac1d-525400d6cd4f.18e7ac10f92","object":"email"} [2024-03-26 12: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 12:34: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12:34: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 12:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:34:58] 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 `created_at` desc [2024-03-26 12:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:34:58] 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 `created_at` desc [2024-03-26 12:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:34:58] 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 `updated_at` desc [2024-03-26 12:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:34:58] 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 `created_at` desc [2024-03-26 12:35: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12:35: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-03-26' 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-03-26 12:35:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 12:35:08] 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 `created_at` desc [2024-03-26 12:35:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:35:08] 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 `created_at` desc [2024-03-26 12:35: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-03-26 12:35:20] 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-03-26 12:35:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:35:23] 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 `created_at` desc [2024-03-26 12:35:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:35:23] 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 `created_at` desc [2024-03-26 12:35:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:35:23] 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 `updated_at` desc [2024-03-26 12:35:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:35:23] 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 `created_at` desc [2024-03-26 12:35:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 12:35:30] 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 `created_at` desc [2024-03-26 12:35:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:35:30] 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 `created_at` desc [2024-03-26 12:35:32] 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 `created_at` asc [2024-03-26 12:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:35:34] 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 `created_at` desc [2024-03-26 12:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:35:34] 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 `created_at` desc [2024-03-26 12:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:35:34] 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 `updated_at` desc [2024-03-26 12:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:35:34] 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 `created_at` desc [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-26' 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-03-26 12:35:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:35:45] 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 `created_at` desc [2024-03-26 12:35:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:35:45] 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 `created_at` desc [2024-03-26 12:35:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:35:45] 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 `updated_at` desc [2024-03-26 12:35:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:35:45] 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 `created_at` desc [2024-03-26 12:35: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 12:35: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-03-26' 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-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:37:17] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:37:17] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:37:17] 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 `created_at` desc [2024-03-26 12:37: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-03-26 12:37:19] 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-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:37:21] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:37:21] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:37:21] 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 `created_at` desc [2024-03-26 12:37: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-03-26 12:37:23] 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-03-26 12:37: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-03-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-03-26 12:37:24] 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 `created_at` desc [2024-03-26 12:37: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-03-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-03-26 12:37:25] 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 `created_at` desc [2024-03-26 12:37: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-03-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-03-26 12:37:25] 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 `created_at` desc [2024-03-26 12:37: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-03-26 12:37:30] 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-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:38:24] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:38:24] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:38:24] 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 `created_at` desc [2024-03-26 12:38: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-03-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-03-26 12:38:29] 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 `created_at` desc [2024-03-26 12:38: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-03-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-03-26 12:38:29] 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 `created_at` desc [2024-03-26 12:38: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-03-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-03-26 12:38:29] 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 `created_at` desc [2024-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-26 12:38:31] 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-03-26 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-26 12:39:02] 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-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 12:41:35] 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-03-26 12: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 12:42:01] 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 `created_at` desc [2024-03-26 12: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:42:01] 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 `created_at` desc [2024-03-26 12: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:42:01] 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 `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 12:42:27] 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-03-26 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-03-26 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12:45:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 12:45:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:45:32] 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 `created_at` desc [2024-03-26 12:45:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:45:32] 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 `created_at` desc [2024-03-26 12:45:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:45:32] 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 `updated_at` desc [2024-03-26 12:45:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:45:32] 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 `created_at` desc [2024-03-26 12:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12:52:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12:52:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 12:52:52] 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-03-26 12:52: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-03-26 12:53: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-03-26 12:53:25] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-03-26 12:53:25] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/ClaimService.php(218): App\V2\Services\ClaimService->canClaimTask() #1 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(408): App\V2\Services\ClaimService->createNewClaimForTask() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->create_new_claim_for_task() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #40 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #41 {main} [2024-03-26 12:53:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 12:53:29] 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-03-26 12:54:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 12:54:01] 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 `created_at` desc [2024-03-26 12:54:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:54:01] 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 `created_at` desc [2024-03-26 12:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 12:54:46] 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 `created_at` desc [2024-03-26 12:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:54:46] 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 `created_at` desc [2024-03-26 12:54:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 12:54:48] 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-03-26 12:54:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-26 12:54:59] 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 `created_at` desc [2024-03-26 12:54:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:54:59] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:55:50] 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 `created_at` desc [2024-03-26 12: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 12:55:50] 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 `created_at` desc [2024-03-26 12: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-03-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-03-26 12:55:50] 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 `created_at` desc [2024-03-26 12: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-03-26 12:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:56:35] 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 `created_at` desc [2024-03-26 12:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:56:35] 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 `created_at` desc [2024-03-26 12:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:56:35] 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 `updated_at` desc [2024-03-26 12:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:56:35] 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 `created_at` desc [2024-03-26 12:56:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:56:37] 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 `created_at` desc [2024-03-26 12:56:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:56:37] 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 `created_at` desc [2024-03-26 12:56:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:56:37] 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 `updated_at` desc [2024-03-26 12:56:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:56:37] 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 `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 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-03-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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-26 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 12:57:35] 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-03-26 12:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:57:39] 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 `created_at` desc [2024-03-26 12:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:57:39] 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 `created_at` desc [2024-03-26 12:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:57:39] 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 `updated_at` desc [2024-03-26 12:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:57:39] 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 `created_at` desc [2024-03-26 12:58:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 12:58:32] 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-03-26 12:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:58:34] 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 `created_at` desc [2024-03-26 12:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:58:34] 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 `created_at` desc [2024-03-26 12:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:58:35] 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 `updated_at` desc [2024-03-26 12:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:58:35] 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 `created_at` desc [2024-03-26 12:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 12:59:46] 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-03-26 12:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 12:59:53] 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 `created_at` desc [2024-03-26 12:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 12:59:53] 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 `created_at` desc [2024-03-26 12:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 12:59:53] 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 `updated_at` desc [2024-03-26 12:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 12:59:53] 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 `created_at` desc [2024-03-26 13:00:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 13:00:13] 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-03-26 13:00:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:00:16] 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 `created_at` desc [2024-03-26 13:00:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:00:17] 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 `created_at` desc [2024-03-26 13:00:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:00:17] 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 `updated_at` desc [2024-03-26 13:00:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:00:17] 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 `created_at` desc [2024-03-26 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 13:00:53] 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-03-26 13:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:04:25] 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 `created_at` desc [2024-03-26 13:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:04:25] 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 `created_at` desc [2024-03-26 13:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:04:25] 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 `updated_at` desc [2024-03-26 13:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:04:25] 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 `created_at` desc [2024-03-26 13:05:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 13: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-03-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-03-26 13:05:31] 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 `created_at` desc [2024-03-26 13: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-03-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-03-26 13:05:31] 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 `created_at` desc [2024-03-26 13: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-03-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-03-26 13:05:31] 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 `created_at` desc [2024-03-26 13:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:05:32] 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 `created_at` desc [2024-03-26 13:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:05:32] 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 `created_at` desc [2024-03-26 13:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:05:32] 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 `updated_at` desc [2024-03-26 13:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:05:32] 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 `created_at` desc [2024-03-26 13:05: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-03-26 13:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-26 13:05:35] 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-03-26 13:05:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:05:37] 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 `created_at` desc [2024-03-26 13:05:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:05:37] 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 `created_at` desc [2024-03-26 13:05:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:05:37] 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 `updated_at` desc [2024-03-26 13:05:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:05:37] 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 `created_at` desc [2024-03-26 13:07:55] local.DEBUG: Product Image Details: Array ( [product_id] => 179 [image_name] => 15244055311711458475.png ) [2024-03-26 13:07:55] 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-03-26 13:07: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-03-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-03-26 13:07:56] 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 `created_at` desc [2024-03-26 13:07: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-03-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-03-26 13:07:56] 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 `created_at` desc [2024-03-26 13:07: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-03-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-03-26 13:07:56] 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 `created_at` desc [2024-03-26 13:08: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-03-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-03-26 13:08:08] 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 `created_at` desc [2024-03-26 13: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`.`expires_on` > '2024-03-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-03-26 13:08:11] 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 `created_at` desc [2024-03-26 13:08: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`.`expires_on` > '2024-03-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-03-26 13:08:13] 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 `created_at` desc [2024-03-26 13:08: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`.`expires_on` > '2024-03-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-03-26 13:08:15] 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 `created_at` desc [2024-03-26 13:08: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`.`expires_on` > '2024-03-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-03-26 13:08:18] 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 `created_at` desc [2024-03-26 13:08: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-03-26 13:08:28] 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-03-26 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 13:08:35] 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 `created_at` desc [2024-03-26 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:08:35] 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 `created_at` desc [2024-03-26 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:08:35] 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 `created_at` desc [2024-03-26 13:09: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-03-26 13:09:57] 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-03-26 13:10:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:10:13] 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 `created_at` desc [2024-03-26 13:10:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:10:13] 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 `created_at` desc [2024-03-26 13:10:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:10:13] 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 `updated_at` desc [2024-03-26 13:10:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:10:13] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 13:12:41] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:12:41] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:12:41] 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 `created_at` desc [2024-03-26 13: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 13: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 13: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-26 13:13: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-03-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-03-26 13:13:06] 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 `created_at` desc [2024-03-26 13:13: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-03-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-03-26 13:13:06] 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 `created_at` desc [2024-03-26 13:13: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-03-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-03-26 13:13:06] 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 `created_at` desc [2024-03-26 13:13: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-03-26 13:15: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-03-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-03-26 13:15:30] 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 `created_at` desc [2024-03-26 13:15: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-03-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-03-26 13:15:30] 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 `created_at` desc [2024-03-26 13:15: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-03-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-03-26 13:15:30] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 13:16:57] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:16:57] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:16:57] 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 `created_at` desc [2024-03-26 13:16: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-03-26 13:18: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 13:18: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-03-26' 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-03-26 13:20:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:20:10] 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 `created_at` desc [2024-03-26 13:20:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:20:10] 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 `created_at` desc [2024-03-26 13:20:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:20:10] 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 `updated_at` desc [2024-03-26 13:20:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:20:10] 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 `created_at` desc [2024-03-26 13:20:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:20:27] 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 `created_at` desc [2024-03-26 13:20:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:20:27] 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 `created_at` desc [2024-03-26 13:20:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:20:27] 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 `updated_at` desc [2024-03-26 13:20:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:20:27] 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 `created_at` desc [2024-03-26 13: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 13: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-03-26' 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-03-26 13: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-03-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-03-26 13:22:09] 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 `created_at` desc [2024-03-26 13: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:22:10] 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 `created_at` desc [2024-03-26 13: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-03-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-03-26 13:22:10] 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 `created_at` desc [2024-03-26 13:22:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-26 13:22:37] 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 `created_at` desc [2024-03-26 13:22:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-26 13:22:37] 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 `created_at` desc [2024-03-26 13:22:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-25' 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-03-26 13:22:37] 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 `updated_at` desc [2024-03-26 13:22:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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 20 [2024-03-26 13:22:37] 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 `created_at` desc [2024-03-26 13:23: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-03-29' and `tasks`.`due_by` > '2024-03-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-26 13:23: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-03-26' 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-03-26 13:24: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-03-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-03-26 13:24:40] 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 `created_at` desc [2024-03-26 13:24: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-03-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-03-26 13:24:40] 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 `created_at` desc [2024-03-26 13:24: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-03-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-03-26 13:24:40] 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 `created_at` desc [2024-03-26 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-26 13:25: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-03-26 13:25:12] 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-03-26 13:26: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-03-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-03-26 13:26:27] 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 `created_at` desc [2024-03-26 13:26: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-03-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-03-26 13:26:27] 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 `created_at` desc [2024-03-26 13:26: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-03-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-03-26 13:26:27] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-26 13:27:11] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:27:11] 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 `created_at` desc [2024-03-26 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-26 13:27:11] 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 `created_at` desc [2024-03-26 13: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-26 13:27:55] 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-03-27 05:42:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:42:52] 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 `created_at` desc [2024-03-27 05:42:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:42:52] 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 `created_at` desc [2024-03-27 05:42:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:42:52] 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 `updated_at` desc [2024-03-27 05:42:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 05:42:52] 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 `created_at` desc [2024-03-27 05:43:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 05:43:53] 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-03-27 05:44:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:04] 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 `created_at` desc [2024-03-27 05:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:04] 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 `created_at` desc [2024-03-27 05:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:04] 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 `updated_at` desc [2024-03-27 05:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 05:44:04] 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 `created_at` desc [2024-03-27 05:44:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 05:44:22] 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 `created_at` desc [2024-03-27 05:44:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:22] 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 `created_at` desc [2024-03-27 05:44:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 05:44:36] 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 `created_at` desc [2024-03-27 05:44:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:36] 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 `created_at` desc [2024-03-27 05:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:42] 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 `created_at` desc [2024-03-27 05:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:42] 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 `created_at` desc [2024-03-27 05:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:44:42] 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 `updated_at` desc [2024-03-27 05:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 05:44:42] 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 `created_at` desc [2024-03-27 05:44:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 05:44:53] 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-03-27 05:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:45:03] 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 `created_at` desc [2024-03-27 05:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:45:03] 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 `created_at` desc [2024-03-27 05:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 05:45:03] 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 `updated_at` desc [2024-03-27 05:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 05:45:03] 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 `created_at` desc [2024-03-27 06:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 06:21:02] 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 `created_at` desc [2024-03-27 06:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 06:21:02] 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 `created_at` desc [2024-03-27 06:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 06:21:02] 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 `updated_at` desc [2024-03-27 06:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 06:21:02] 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 `created_at` desc [2024-03-27 06: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-27 06: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-27 06:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 06:51:22] 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 `created_at` desc [2024-03-27 06:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 06:51:22] 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 `created_at` desc [2024-03-27 06:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 06:51:22] 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 `updated_at` desc [2024-03-27 06:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 06:51:22] 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 `created_at` desc [2024-03-27 06:54: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-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-27 06:54: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-03-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-03-27 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-03-27 09: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 09: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 09: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 09:30:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 09:30:14] 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 `created_at` desc [2024-03-27 09:30:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 09:30:14] 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 `created_at` desc [2024-03-27 09:30:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 09:30:14] 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 `updated_at` desc [2024-03-27 09:30:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 09:30:14] 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 `created_at` desc [2024-03-27 09:30: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-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-27 09:30: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-03-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-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 11:17:28] 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 `created_at` desc [2024-03-27 11:17:28] 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 `created_at` desc [2024-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 11:17:28] 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 `created_at` desc [2024-03-27 11:17:28] 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 `created_at` desc [2024-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 11:17:28] 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 `created_at` desc [2024-03-27 11:17:28] 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 `created_at` desc [2024-03-27 11:18: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-03-27 11:19:02] local.DEBUG: Product Image Details: Array ( [product_id] => 180 [image_name] => 2520321861711538342.png ) [2024-03-27 11:19:02] 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-03-27 11:19: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-03-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-03-27 11:19:03] 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 `created_at` desc [2024-03-27 11:19: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-03-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-03-27 11:19:03] 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 `created_at` desc [2024-03-27 11:19: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-03-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-03-27 11:19:03] 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 `created_at` desc [2024-03-27 11:19: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_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:19:08] 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 `created_at` desc [2024-03-27 11:19: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-03-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-03-27 11:19:11] 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 `created_at` desc [2024-03-27 11:19: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-03-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-03-27 11:19:11] 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 `created_at` desc [2024-03-27 11:19: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-03-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-03-27 11:19:11] 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 `created_at` desc [2024-03-27 11:19: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-03-27 11:19:17] 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-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 11:19:27] 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 `created_at` desc [2024-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 11:19:27] 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 `created_at` desc [2024-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 11:19:27] 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 `created_at` desc [2024-03-27 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-27 11:19:51] 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-03-27 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-03-27 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 11:20:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:20:22] 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-03-27 11:21:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:21:11] 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-03-27 11:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:21:12] 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 `created_at` desc [2024-03-27 11:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:21:12] 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 `created_at` desc [2024-03-27 11:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:21:12] 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 `updated_at` desc [2024-03-27 11:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:21:12] 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 `created_at` desc [2024-03-27 11:21:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:21:15] 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-03-27 11:21: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-03-27 11:21:30] local.DEBUG: task visible_to: [2024-03-27 11:22:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:22:05] 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-03-27 11:22: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-03-27 11:22:20] local.DEBUG: task visible_to: [2024-03-27 11:22: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-03-27 11:22:41] local.DEBUG: task visible_to: [2024-03-27 11:22:41] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-03-27 11:22: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":"eyeclik@gmail.com","name":"Aman Kumar"}}],"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 Kumar,<\\/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 with reward - review needed<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/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-03-27 11:22:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.53bc7580-ec2c-11ee-ac1d-525400d6cd4f.18e7fa5e4d8","object":"email"} [2024-03-27 11:22: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-03-27 11:22:43] local.DEBUG: task visible_to: [2024-03-27 11:24:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:24:35] 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 `created_at` desc [2024-03-27 11:24:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:24:35] 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 `created_at` desc [2024-03-27 11:24:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:24:35] 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 `updated_at` desc [2024-03-27 11:24:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:24:35] 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 `created_at` desc [2024-03-27 11:24:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:24:41] 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-03-27 11:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:24:43] 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 `created_at` desc [2024-03-27 11:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:24:43] 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 `created_at` desc [2024-03-27 11:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:24:43] 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 `updated_at` desc [2024-03-27 11:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:24:43] 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 `created_at` desc [2024-03-27 11:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:25:36] 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 `created_at` desc [2024-03-27 11:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:25:36] 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 `created_at` desc [2024-03-27 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-27 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-27 11:29: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-03-27 11:29:58] local.DEBUG: task visible_to: GLOBAL [2024-03-27 11:30: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-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-27 11:30: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-03-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-03-27 11: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-03-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-03-27 11: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 `created_at` desc [2024-03-27 11: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-03-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-03-27 11: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 `created_at` desc [2024-03-27 11: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-03-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-03-27 11: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 `created_at` desc [2024-03-27 11:31:06] local.DEBUG: Review allowed to UserId: 110 for ClaimId:7, Reason: User is the owner of the group, and task belongs to the same group [2024-03-27 11:31: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":"amanchild@gmail.com","name":"Aman Child"}}],"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 Aman Child,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Task with reward - review needed<\\/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-03-27 11:31:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.809efa90-ec2d-11ee-9589-525400103106.18e7fad98b9","object":"email"} [2024-03-27 11:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:31:21] 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 `created_at` desc [2024-03-27 11:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:31:21] 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 `created_at` desc [2024-03-27 11:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:31:21] 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 `updated_at` desc [2024-03-27 11:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:31:21] 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 `created_at` desc [2024-03-27 11:31:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:31:25] 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 `created_at` desc [2024-03-27 11:31:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:31:26] 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 `created_at` desc [2024-03-27 11:32:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:32:51] 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 `created_at` desc [2024-03-27 11:32:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:32:51] 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 `created_at` desc [2024-03-27 11:33:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:33:02] 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 `created_at` desc [2024-03-27 11:33:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:02] 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 `created_at` desc [2024-03-27 11:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:14] 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 `created_at` desc [2024-03-27 11:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:14] 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 `created_at` desc [2024-03-27 11:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:14] 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 `updated_at` desc [2024-03-27 11:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:33:14] 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 `created_at` desc [2024-03-27 11:33:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:33:17] 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 `created_at` desc [2024-03-27 11:33:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:17] 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 `created_at` desc [2024-03-27 11:33:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:22] 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 `created_at` desc [2024-03-27 11:33:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:22] 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 `created_at` desc [2024-03-27 11:33:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:22] 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 `updated_at` desc [2024-03-27 11:33:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:33:22] 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 `created_at` desc [2024-03-27 11:33:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:33:27] 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 `created_at` desc [2024-03-27 11:33:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:33:27] 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 `created_at` desc [2024-03-27 11:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:34:50] 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-03-27 11:34:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:34:53] 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 `created_at` desc [2024-03-27 11:34:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:34:53] 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 `created_at` desc [2024-03-27 11:34:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:34:56] 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-03-27 11:35:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:35:12] 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 `created_at` desc [2024-03-27 11:35:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:12] 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 `created_at` desc [2024-03-27 11:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:15] 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 `created_at` desc [2024-03-27 11:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:15] 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 `created_at` desc [2024-03-27 11:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:15] 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 `updated_at` desc [2024-03-27 11:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:35:15] 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 `created_at` desc [2024-03-27 11:35:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:35:19] 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-03-27 11:35:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:24] 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 `created_at` desc [2024-03-27 11:35:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:24] 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 `created_at` desc [2024-03-27 11:35:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:24] 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 `updated_at` desc [2024-03-27 11:35:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:35:24] 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 `created_at` desc [2024-03-27 11:35:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 11:35:28] 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-03-27 11:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:53] 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 `created_at` desc [2024-03-27 11:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:53] 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 `created_at` desc [2024-03-27 11:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:53] 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 `updated_at` desc [2024-03-27 11:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:35:53] 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 `created_at` desc [2024-03-27 11:35:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:35:57] 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 `created_at` desc [2024-03-27 11:35:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:35:57] 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 `created_at` desc [2024-03-27 11:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:36:01] 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 `created_at` desc [2024-03-27 11:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:36:01] 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 `created_at` desc [2024-03-27 11:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:36:01] 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 `updated_at` desc [2024-03-27 11:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:36:01] 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 `created_at` desc [2024-03-27 11:36:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:36:05] 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 `created_at` desc [2024-03-27 11:36:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:36:05] 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 `created_at` desc [2024-03-27 11:36:10] 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 `created_at` asc [2024-03-27 11:37:08] local.DEBUG: Wish Image Details: Array ( [product_wished_id] => 4 [image_name] => 16147292441711539427.png ) [2024-03-27 11:37:08] 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 `created_at` asc [2024-03-27 11:37:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 11:37:37] 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 `created_at` desc [2024-03-27 11:37:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 11:37:37] 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 `created_at` desc [2024-03-27 14: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 14:01:00] 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 `created_at` desc [2024-03-27 14: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 14:01:00] 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 `created_at` desc [2024-03-27 14: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 14:01:00] 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 `created_at` desc [2024-03-27 14: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-03-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-03-27 14:02:14] 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 `created_at` desc [2024-03-27 14: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-03-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-03-27 14:02:14] 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 `created_at` desc [2024-03-27 14: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-03-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-03-27 14:02:14] 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 `created_at` desc [2024-03-27 14: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` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-27 14:02:21] 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-03-27 14:02: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-03-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-03-27 14:02:45] 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 `created_at` desc [2024-03-27 14:02: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-03-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-03-27 14:02:45] 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 `created_at` desc [2024-03-27 14:02: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-03-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-03-27 14:02:45] 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 `created_at` desc [2024-03-27 14:03: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_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-27 14:03:18] 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 `created_at` desc [2024-03-27 14:03: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-03-27 14: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_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-27 14:03:25] 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 `created_at` desc [2024-03-27 14:03: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-03-27 14:03: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-03-27 14:03: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_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-27 14:03:41] 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 `created_at` desc [2024-03-27 14: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`.`due_by` <= '2024-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 14: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`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 14: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 14:04: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-03-27 14:04: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-03-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-03-27 14:04:54] 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 `created_at` desc [2024-03-27 14:04: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-03-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-03-27 14:04:54] 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 `created_at` desc [2024-03-27 14:04: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-03-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-03-27 14:04:54] 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 `created_at` desc [2024-03-27 16:42: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-03-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-03-27 16:42:21] 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 `created_at` desc [2024-03-27 16:42: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-03-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-03-27 16:42:21] 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 `created_at` desc [2024-03-27 16:42: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-03-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-03-27 16:42:21] 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 `created_at` desc [2024-03-27 16:42: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-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 16:42: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-03-27 16:42: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-03-27 16:45:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:45:56] 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 `created_at` desc [2024-03-27 16:45:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:45:56] 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 `created_at` desc [2024-03-27 16:45:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:45:56] 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 `updated_at` desc [2024-03-27 16:45:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:45:56] 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 `created_at` desc [2024-03-27 16:46:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 16:46:51] 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-03-27 16:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:46:55] 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 `created_at` desc [2024-03-27 16:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:46:55] 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 `created_at` desc [2024-03-27 16:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:46:55] 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 `updated_at` desc [2024-03-27 16:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:46:55] 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 `created_at` desc [2024-03-27 16:47:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 16:47:09] 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-03-27 16:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:47:21] 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 `created_at` desc [2024-03-27 16:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:47:22] 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 `created_at` desc [2024-03-27 16:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:47:22] 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 `updated_at` desc [2024-03-27 16:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:47:22] 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 `created_at` desc [2024-03-27 16:47:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-27 16: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 16:47:56] local.DEBUG: task visible_to: [2024-03-27 16:48:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 16:48:07] 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-03-27 16:48: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-03-27 16:48:12] local.DEBUG: task visible_to: [2024-03-27 16:48:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-27 16:48:19] 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-03-27 16:48:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:28] 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 `created_at` desc [2024-03-27 16:48:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:28] 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 `created_at` desc [2024-03-27 16:48:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:28] 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 `updated_at` desc [2024-03-27 16:48:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:48:28] 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 `created_at` desc [2024-03-27 16:48:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:34] 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 `created_at` desc [2024-03-27 16:48:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:34] 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 `created_at` desc [2024-03-27 16:48:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:34] 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 `updated_at` desc [2024-03-27 16:48:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:48:34] 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 `created_at` desc [2024-03-27 16:48:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:48:35] 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 `created_at` desc [2024-03-27 16:48:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:35] 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 `created_at` desc [2024-03-27 16:48:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:48:51] 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 `created_at` desc [2024-03-27 16:48:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:48:51] 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 `created_at` desc [2024-03-27 16:49:33] 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 `created_at` asc [2024-03-27 16:49:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:49:56] 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 `created_at` desc [2024-03-27 16:49:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:49:56] 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 `created_at` desc [2024-03-27 16:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:02] 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 `created_at` desc [2024-03-27 16:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:02] 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 `created_at` desc [2024-03-27 16:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:02] 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 `updated_at` desc [2024-03-27 16:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:50:02] 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 `created_at` desc [2024-03-27 16:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:50:05] 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 `created_at` desc [2024-03-27 16:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:05] 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 `created_at` desc [2024-03-27 16:50:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:59] 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 `created_at` desc [2024-03-27 16:50:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:59] 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 `created_at` desc [2024-03-27 16:50:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:50:59] 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 `updated_at` desc [2024-03-27 16:50:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:50:59] 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 `created_at` desc [2024-03-27 16:51:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:51:21] 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 `created_at` desc [2024-03-27 16:51:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:51:21] 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 `created_at` desc [2024-03-27 16:51:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:51:30] 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 `created_at` desc [2024-03-27 16:51:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:51:30] 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 `created_at` desc [2024-03-27 16:51:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:51:30] 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 `updated_at` desc [2024-03-27 16:51:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:51:30] 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 `created_at` desc [2024-03-27 16:51:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:51:35] 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 `created_at` desc [2024-03-27 16:51:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:51:35] 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 `created_at` desc [2024-03-27 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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 16:53: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-03-27 16:53:01] 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-03-27 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:03] 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 `created_at` desc [2024-03-27 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:03] 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 `created_at` desc [2024-03-27 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:03] 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 `created_at` desc [2024-03-27 16:53: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-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-27 16:53: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-03-27 16:53: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-03-27 16:53:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:53:32] 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 `created_at` desc [2024-03-27 16:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:53:33] 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 `created_at` desc [2024-03-27 16:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 16:53:33] 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 `updated_at` desc [2024-03-27 16:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 16:53:33] 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 `created_at` desc [2024-03-27 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:34] 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 `created_at` desc [2024-03-27 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:34] 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 `created_at` desc [2024-03-27 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:34] 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 `created_at` desc [2024-03-27 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-27 16:53:37] 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-03-27 16:53: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-03-30' and `tasks`.`due_by` > '2024-03-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-27 16:53: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-03-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-03-27 16:53:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 16:53:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 16:53:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-03-27 16:53:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-27 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-27 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:59] 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 `created_at` desc [2024-03-27 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:59] 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 `created_at` desc [2024-03-27 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:53:59] 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 `created_at` desc [2024-03-27 16:54: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-03-27 16:54:26] 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-03-27 16: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-03-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-03-27 16:56:18] 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 `created_at` desc [2024-03-27 16: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-03-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-03-27 16:56:18] 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 `created_at` desc [2024-03-27 16: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-03-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-03-27 16:56:18] 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 `created_at` desc [2024-03-27 16:56: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-03-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-03-27 16:56:38] 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 `created_at` desc [2024-03-27 16:56: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-03-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-03-27 16:56:38] 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 `created_at` desc [2024-03-27 16:56: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-03-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-03-27 16:56:38] 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 `created_at` desc [2024-03-27 16:56: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-03-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-03-27 16:56:40] 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 `created_at` desc [2024-03-27 16:56: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-03-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-03-27 16:56:40] 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 `created_at` desc [2024-03-27 16: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-27 16:56:53] 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 `created_at` desc [2024-03-27 16: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:56:53] 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 `created_at` desc [2024-03-27 16: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-27 16:56:53] 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 `created_at` desc [2024-03-28 01: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-28 01: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-28 01:00:56] 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 `created_at` desc [2024-03-28 01:00:56] 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 `created_at` desc [2024-03-28 01: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01:00:56] 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 `created_at` desc [2024-03-28 01:00:56] 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 `created_at` desc [2024-03-28 01: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01:00:56] 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 `created_at` desc [2024-03-28 01:00:56] 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 `created_at` desc [2024-03-28 01:01: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-03-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-03-28 01:01:11] 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 `created_at` desc [2024-03-28 01:01: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-03-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-03-28 01:01:11] 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 `created_at` desc [2024-03-28 01:01: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-03-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-03-28 01:01:11] 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 `created_at` desc [2024-03-28 01:01: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-03-28 01: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-03-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-03-28 01:01:18] 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 `created_at` desc [2024-03-28 01: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-03-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-03-28 01:01:19] 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 `created_at` desc [2024-03-28 01: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01:01:19] 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 `created_at` desc [2024-03-28 01: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` = ?)) 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-03-28 01: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-28 01:01:31] 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 `created_at` desc [2024-03-28 01: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01:01:31] 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 `created_at` desc [2024-03-28 01: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 01:01:31] 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 `created_at` desc [2024-03-28 01: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`.`expires_on` > '2024-03-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-03-28 01:02:02] 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 `created_at` desc [2024-03-28 01: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`.`expires_on` > '2024-03-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-03-28 01:02:02] 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 `created_at` desc [2024-03-28 01:02: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-03-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-03-28 01:02:09] 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 `created_at` desc [2024-03-28 01:02: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-03-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-03-28 01:02:09] 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 `created_at` desc [2024-03-28 01:02: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-03-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-03-28 01:02:09] 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 `created_at` desc [2024-03-28 01: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` = ?)) 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-03-28 01: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-03-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-03-28 01:02:14] 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 `created_at` desc [2024-03-28 01: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-03-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-03-28 01:02:14] 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 `created_at` desc [2024-03-28 01: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-03-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-03-28 01:02:14] 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 `created_at` desc [2024-03-28 01:02: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-28 01:02: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-03-28 01:02: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-03-28 04:50:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 04:50:29] 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 `created_at` desc [2024-03-28 04:50:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 04:50:29] 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 `created_at` desc [2024-03-28 04:50:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 04:50:29] 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 `updated_at` desc [2024-03-28 04:50:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 04:50:29] 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 `created_at` desc [2024-03-28 04: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 04: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-28 04:52: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-03-28 04: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-28 05:05: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-03-28 05:05: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-03-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-03-28 05:05:00] 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 `created_at` desc [2024-03-28 05:05: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-03-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-03-28 05:05:00] 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 `created_at` desc [2024-03-28 05:05: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-03-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-03-28 05:05:00] 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 `created_at` desc [2024-03-28 05:05: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-03-28 05: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-28 05:10:43] local.DEBUG: task visible_to: [2024-03-28 05:10: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 05:10: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-03-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-03-28 05: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-28 05:34:14] 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 `created_at` desc [2024-03-28 05: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 05:34:14] 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 `created_at` desc [2024-03-28 05: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 05:34:14] 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 `created_at` desc [2024-03-28 05:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 05:50:11] 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 `created_at` desc [2024-03-28 05:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 05:50:11] 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 `created_at` desc [2024-03-28 05:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 05:50:11] 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 `updated_at` desc [2024-03-28 05:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 05:50:11] 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 `created_at` desc [2024-03-28 05:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 05:50:13] 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 `created_at` desc [2024-03-28 05:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 05:50:13] 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 `created_at` desc [2024-03-28 05:50:15] 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 `created_at` asc [2024-03-28 06:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-28 06:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-28 06:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:16:44] 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 `created_at` desc [2024-03-28 06:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:16:44] 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 `created_at` desc [2024-03-28 06:18: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 06:18: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-03-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-03-28 06:18: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 06:18: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-03-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-03-28 06:18: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 06:18: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-03-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-03-28 06:19:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:19:57] 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 `created_at` desc [2024-03-28 06:19:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:19:57] 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 `created_at` desc [2024-03-28 06:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:19:58] 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 `updated_at` desc [2024-03-28 06:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:19:58] 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 `created_at` desc [2024-03-28 06:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:20:49] 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 `created_at` desc [2024-03-28 06:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:20:49] 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 `created_at` desc [2024-03-28 06: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 06: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-28 06: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-28 06: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 06: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-03-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-03-28 06:21:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:21:26] 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 `created_at` desc [2024-03-28 06:21:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:21:26] 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 `created_at` desc [2024-03-28 06:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:23:23] 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 `created_at` desc [2024-03-28 06:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:23:23] 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 `created_at` desc [2024-03-28 06:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:23:23] 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 `updated_at` desc [2024-03-28 06:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:23:23] 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 `created_at` desc [2024-03-28 06:23:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:23:46] 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 `created_at` desc [2024-03-28 06:23:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:23:46] 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 `created_at` desc [2024-03-28 06:25:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:25:23] 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 `created_at` desc [2024-03-28 06:25:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:25:23] 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 `created_at` desc [2024-03-28 06:25:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:25:23] 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 `updated_at` desc [2024-03-28 06:25:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:25:23] 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 `created_at` desc [2024-03-28 06:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:29:35] 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 `created_at` desc [2024-03-28 06:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:29:35] 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 `created_at` desc [2024-03-28 06:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:30:25] 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 `created_at` desc [2024-03-28 06:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:30:25] 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 `created_at` desc [2024-03-28 06:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:30:25] 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 `updated_at` desc [2024-03-28 06:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:30:25] 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 `created_at` desc [2024-03-28 06:30:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:30:29] 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 `created_at` desc [2024-03-28 06:30:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:30:29] 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 `created_at` desc [2024-03-28 06:32:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:32:28] 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 `created_at` desc [2024-03-28 06:32:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:32:28] 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 `created_at` desc [2024-03-28 06:32:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:32:28] 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 `updated_at` desc [2024-03-28 06:32:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:32:28] 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 `created_at` desc [2024-03-28 06:32:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:32:29] 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 `created_at` desc [2024-03-28 06:32:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:32:29] 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 `created_at` desc [2024-03-28 06:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:33:19] 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 `created_at` desc [2024-03-28 06:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:33:19] 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 `created_at` desc [2024-03-28 06:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:33:19] 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 `updated_at` desc [2024-03-28 06:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:33:19] 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 `created_at` desc [2024-03-28 06:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:33:20] 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 `created_at` desc [2024-03-28 06:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:33:20] 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 `created_at` desc [2024-03-28 06:54: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-03-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-03-28 06:54:09] 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 `created_at` desc [2024-03-28 06:54: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-03-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-03-28 06:54:09] 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 `created_at` desc [2024-03-28 06:54: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-03-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-03-28 06:54:09] 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 `created_at` desc [2024-03-28 06:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 06:54:35] 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 `created_at` desc [2024-03-28 06:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 06:54:35] 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 `created_at` desc [2024-03-28 06:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 06:54:35] 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 `updated_at` desc [2024-03-28 06:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:54:35] 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 `created_at` desc [2024-03-28 06:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 06:54:39] 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 `created_at` desc [2024-03-28 06:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 06:54:39] 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 `created_at` desc [2024-03-28 06:54:42] 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 `created_at` asc [2024-03-28 06:56: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":"john112@gmail.com","name":"john"}}],"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,<\\/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;\\">49298<\\/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-03-28 06:56:59] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5f41bb00-ecd0-11ee-833a-525400103106.18e83d8fab0","object":"email"} [2024-03-28 07:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 07:00:26] 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 `created_at` desc [2024-03-28 07:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 07:00:26] 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 `created_at` desc [2024-03-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-03-28 07:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-28 07:08:51] 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-03-28 07:08:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-28 07:08:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-28 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-28 07:10:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 07:10:16] 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 `created_at` desc [2024-03-28 07:10:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 07:10:16] 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 `created_at` desc [2024-03-28 07:10:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 07:10:16] 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 `updated_at` desc [2024-03-28 07:10:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 07:10:16] 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 `created_at` desc [2024-03-28 07:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 07:25:36] 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 `created_at` desc [2024-03-28 07:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 07:25:36] 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 `created_at` desc [2024-03-28 07:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 07:25:36] 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 `updated_at` desc [2024-03-28 07:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 07:25:36] 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 `created_at` desc [2024-03-28 07:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-28 07:25:37] 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 `created_at` desc [2024-03-28 07:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-28 07:25:37] 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 `created_at` desc [2024-03-28 07:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-27' 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-03-28 07:25:37] 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 `updated_at` desc [2024-03-28 07:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-28 07:25:37] 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 `created_at` desc [2024-03-28 07:25: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-28 07:25: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-03-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-03-28 07:26: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-03-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-03-28 07:26:04] 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 `created_at` desc [2024-03-28 07:26: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-03-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-03-28 07:26:04] 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 `created_at` desc [2024-03-28 07:26: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-03-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-03-28 07:26:04] 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 `created_at` desc [2024-03-28 07:26: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-03-31' and `tasks`.`due_by` > '2024-03-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-28 07:26: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-03-28 07:26: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-03-28 07: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-03-28 07: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 `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-03-28 07:26: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-03-28 07:26: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-03-28 07:26: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-03-28 07:26: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 `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-03-28 10:01: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-03-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-03-28 10:01:02] 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 `created_at` desc [2024-03-28 10:01: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-03-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-03-28 10:01:02] 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 `created_at` desc [2024-03-28 10:01: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-03-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-03-28 10:01:02] 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 `created_at` desc [2024-03-28 10:01: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-03-28 10:01:11] 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-03-28 10: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-03-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-03-28 10:01:40] 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 `created_at` desc [2024-03-28 10: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-03-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-03-28 10:01:40] 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 `created_at` desc [2024-03-28 10: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-03-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-03-28 10:01:40] 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 `created_at` desc [2024-03-28 10:02: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-03-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-03-28 10:02:04] 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 `created_at` desc [2024-03-28 10:02: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-03-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-03-28 10:02:04] 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 `created_at` desc [2024-03-28 10:02: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-03-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-03-28 10:02:04] 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 `created_at` desc [2024-03-28 10:02: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-03-28 10:02:41] 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-03-28 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-28 10:06:00] 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 `created_at` desc [2024-03-28 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 10:06:00] 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 `created_at` desc [2024-03-28 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 10:06:00] 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 `created_at` desc [2024-03-28 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-28 13:16:05] 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 `created_at` desc [2024-03-28 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 13:16:05] 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 `created_at` desc [2024-03-28 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-28 13:16:05] 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 `created_at` desc [2024-03-28 13:25: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-03-28 13:25:50] 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-03-28 18:59:27] local.DEBUG: login failed: The device token field is required. [2024-03-28 18:59:30] local.DEBUG: login failed: The device token field is required. [2024-03-28 18:59:33] local.DEBUG: login failed: The device token field is required. [2024-03-29 02:25:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 02:25:20] 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 `created_at` desc [2024-03-29 02:25:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 02:25:20] 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 `created_at` desc [2024-03-29 02:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 02:25:21] 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 `updated_at` desc [2024-03-29 02:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 02:25:21] 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 `created_at` desc [2024-03-29 02:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 02:25:21] 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 `created_at` desc [2024-03-29 02:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 02:25:21] 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 `created_at` desc [2024-03-29 02:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 02:25:21] 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 `updated_at` desc [2024-03-29 02:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 02:25:21] 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 `created_at` desc [2024-03-29 04: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 04:58:44] 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 `created_at` desc [2024-03-29 04: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 04:58:44] 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 `created_at` desc [2024-03-29 04: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 04:58:44] 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 `created_at` desc [2024-03-29 05:00:19] local.DEBUG: login failed: The device token field is required. [2024-03-29 05:02:21] local.DEBUG: login failed: The device token field is required. [2024-03-29 06:37: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":"john12345@gmail.com","name":"john"}}],"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,<\\/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;\\">75226<\\/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-03-29 06:37:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d202f2f0-ed96-11ee-aa7b-525400ae9113.18e88ed879f","object":"email"} [2024-03-29 07:01: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-03-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-03-29 07:01:57] 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 `created_at` desc [2024-03-29 07:01: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-03-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-03-29 07:01:57] 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 `created_at` desc [2024-03-29 07:01: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-03-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-03-29 07:01:57] 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 `created_at` desc [2024-03-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-03-29 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 07:11:15] 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 `created_at` desc [2024-03-29 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 07:11:15] 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 `created_at` desc [2024-03-29 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 07:11:15] 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 `created_at` desc [2024-03-29 07:12: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":"ho@gmail.com","name":"john11"}}],"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 john11,<\\/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;\\">06682<\\/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-03-29 07:12:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a69747b0-ed9b-11ee-b186-525400f92481.18e890d2fab","object":"email"} [2024-03-29 08:34: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-03-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-03-29 08:34:56] 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 `created_at` desc [2024-03-29 08:34: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-03-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-03-29 08:34:56] 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 `created_at` desc [2024-03-29 08:34: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-03-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-03-29 08:34:56] 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 `created_at` desc [2024-03-29 08:35: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-03-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-03-29 08:35:10] 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 `created_at` desc [2024-03-29 08:35: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-03-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-03-29 08:35:10] 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 `created_at` desc [2024-03-29 08:35: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-03-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-03-29 08:35:10] 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 `created_at` desc [2024-03-29 08: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 08:35:14] 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-03-29 08:35: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-03-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-03-29 08:35:35] 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 `created_at` desc [2024-03-29 08: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-03-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-03-29 08:35:35] 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 `created_at` desc [2024-03-29 08: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-03-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-03-29 08:35:35] 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 `created_at` desc [2024-03-29 08:35: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-03-29 08:35:38] 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-03-29 08:35: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-03-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-03-29 08:35:52] 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 `created_at` desc [2024-03-29 08:35: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-03-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-03-29 08:35:52] 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 `created_at` desc [2024-03-29 08:35: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-03-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-03-29 08:35:52] 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 `created_at` desc [2024-03-29 08:40: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-03-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-03-29 08:40:37] 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 `created_at` desc [2024-03-29 08:40: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-03-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-03-29 08:40:37] 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 `created_at` desc [2024-03-29 08:40: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-03-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-03-29 08:40:37] 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 `created_at` desc [2024-03-29 08: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` = ?) 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-03-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-03-29 08:40:41] 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 `created_at` desc [2024-03-29 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-29 08:40:41] 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 `created_at` desc [2024-03-29 08:40: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-03-29 08:40:49] 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-03-29 08:40: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-03-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-03-29 08:40:50] 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 `created_at` desc [2024-03-29 08:40: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-03-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-03-29 08:40:50] 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 `created_at` desc [2024-03-29 08:41: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-03-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-03-29 08:41:18] 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 `created_at` desc [2024-03-29 08:41: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-03-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-03-29 08:41:18] 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 `created_at` desc [2024-03-29 08:41: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-03-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-03-29 08:41:18] 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 `created_at` desc [2024-03-29 08: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`.`expires_on` > '2024-03-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-03-29 08:41:43] 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 `created_at` desc [2024-03-29 08: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`.`expires_on` > '2024-03-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-03-29 08:41:43] 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 `created_at` desc [2024-03-29 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 08:42:48] 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 `created_at` desc [2024-03-29 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 08:42:48] 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 `created_at` desc [2024-03-29 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 08:42:48] 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 `created_at` desc [2024-03-29 08: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`.`expires_on` > '2024-03-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-03-29 08:46:38] 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 `created_at` desc [2024-03-29 08: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`.`expires_on` > '2024-03-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-03-29 08:46:38] 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 `created_at` desc [2024-03-29 08:47: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-03-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-03-29 08:47:16] 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 `created_at` desc [2024-03-29 08:47: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-03-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-03-29 08:47:16] 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 `created_at` desc [2024-03-29 08:47: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-03-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-03-29 08:47:16] 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 `created_at` desc [2024-03-29 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 09:54:56] 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 `created_at` desc [2024-03-29 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 09:54:56] 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 `created_at` desc [2024-03-29 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 09:54:56] 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 `created_at` desc [2024-03-29 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 09:57:37] 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 `created_at` desc [2024-03-29 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 09:57:37] 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 `created_at` desc [2024-03-29 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 09:57:37] 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 `created_at` desc [2024-03-29 10:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:12:11] 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 `created_at` desc [2024-03-29 10:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:12:11] 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 `created_at` desc [2024-03-29 10:17: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`.`expires_on` > '2024-03-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-03-29 10:17:16] 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 `created_at` desc [2024-03-29 10:17: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`.`expires_on` > '2024-03-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-03-29 10:17:16] 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 `created_at` desc [2024-03-29 10:17:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:17:53] 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 `created_at` desc [2024-03-29 10:17:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:17:53] 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 `created_at` desc [2024-03-29 10:26: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-03-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-03-29 10:26:16] 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 `created_at` desc [2024-03-29 10:26: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-03-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-03-29 10:26:16] 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 `created_at` desc [2024-03-29 10:26: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-03-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-03-29 10:26:16] 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 `created_at` desc [2024-03-29 10:31:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:31:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:32:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:32:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:35:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:35:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:35:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:35: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-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-29 10:35: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-03-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-03-29 10:35:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10: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-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-29 10: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-03-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-03-29 10:35:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:35:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:36:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:36:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 10:36: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-03-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-03-29 10:36:34] 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 `created_at` desc [2024-03-29 10:36: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-03-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-03-29 10:36:34] 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 `created_at` desc [2024-03-29 10:36: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-03-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-03-29 10:36:34] 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 `created_at` desc [2024-03-29 10:38: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-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-29 10:38: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-03-29 10:38: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-03-29 10:38: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-03-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-03-29 10:38:04] 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 `created_at` desc [2024-03-29 10:38: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-03-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-03-29 10:38:04] 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 `created_at` desc [2024-03-29 10:38: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-03-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-03-29 10:38:04] 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 `created_at` desc [2024-03-29 10:49: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-03-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-03-29 10:49:06] 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 `created_at` desc [2024-03-29 10:49: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-03-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-03-29 10:49:06] 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 `created_at` desc [2024-03-29 10:49: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-03-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-03-29 10:49:06] 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 `created_at` desc [2024-03-29 10:49: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`.`expires_on` > '2024-03-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-03-29 10:49:10] 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 `created_at` desc [2024-03-29 10:49: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`.`expires_on` > '2024-03-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-03-29 10:49:12] 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 `created_at` desc [2024-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-29 10:49:15] 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 `created_at` desc [2024-03-29 10: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`.`expires_on` > '2024-03-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-03-29 10:49:18] 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 `created_at` desc [2024-03-29 10:49: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`.`expires_on` > '2024-03-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-03-29 10:49:21] 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 `created_at` desc [2024-03-29 10: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`.`expires_on` > '2024-03-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-03-29 10:49:24] 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 `created_at` desc [2024-03-29 10:49: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-03-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-03-29 10:49:35] 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 `created_at` desc [2024-03-29 10:49: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-03-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-03-29 10:49:35] 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 `created_at` desc [2024-03-29 10:49: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-03-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-03-29 10:49:35] 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 `created_at` desc [2024-03-29 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:49:55] 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 `created_at` desc [2024-03-29 10: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-03-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-03-29 10:49:58] 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 `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 10: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`.`expires_on` > '2024-03-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-03-29 10:50:19] 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 `created_at` desc [2024-03-29 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`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 10:50: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`.`expires_on` > '2024-03-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-03-29 10:50:29] 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 `created_at` desc [2024-03-29 10:50: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`.`expires_on` > '2024-03-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-03-29 10:50:32] 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 `created_at` desc [2024-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 10:50:42] 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 `created_at` desc [2024-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:50:42] 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 `created_at` desc [2024-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:50:42] 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 `created_at` desc [2024-03-29 10:51: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-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 10:51:00] 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 `created_at` desc [2024-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:51:00] 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 `created_at` desc [2024-03-29 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:51:00] 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 `created_at` desc [2024-03-29 10:51: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-03-29 10:51: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-03-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-03-29 10:51:06] 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 `created_at` desc [2024-03-29 10:51: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-03-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-03-29 10:51:06] 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 `created_at` desc [2024-03-29 10:51: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-03-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-03-29 10:51:06] 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 `created_at` desc [2024-03-29 10:51: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-03-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-03-29 10:51:54] 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 `created_at` desc [2024-03-29 10:51: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-03-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-03-29 10:51:54] 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 `created_at` desc [2024-03-29 10:51: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-03-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-03-29 10:51:54] 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 `created_at` desc [2024-03-29 10: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`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 10:52:14] 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 `created_at` desc [2024-03-29 10: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`.`expires_on` > '2024-03-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-03-29 10:52:14] 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 `created_at` desc [2024-03-29 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-29 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-29 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-29 10: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-03-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-03-29 10:55:34] 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 `created_at` desc [2024-03-29 10: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-03-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-03-29 10:55:34] 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 `created_at` desc [2024-03-29 10: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-03-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-03-29 10:55:34] 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 `created_at` desc [2024-03-29 10:56: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-03-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-03-29 10:56:24] 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 `created_at` desc [2024-03-29 10:56: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-03-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-03-29 10:56:24] 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 `created_at` desc [2024-03-29 10:56: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-03-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-03-29 10:56:24] 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 `created_at` desc [2024-03-29 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:59:07] 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 `created_at` desc [2024-03-29 10:59: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-03-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-03-29 10:59:12] 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 `created_at` desc [2024-03-29 10:59: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-03-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-03-29 10:59:12] 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 `created_at` desc [2024-03-29 10:59: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-03-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-03-29 10:59:12] 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 `created_at` desc [2024-03-29 10:59: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`.`expires_on` > '2024-03-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-03-29 10:59:15] 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 `created_at` desc [2024-03-29 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 10:59:17] 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 `created_at` desc [2024-03-29 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:59:17] 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 `created_at` desc [2024-03-29 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 10:59:17] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 11:00:39] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:00:39] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:00:39] 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 `created_at` desc [2024-03-29 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`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 11:04: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-03-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-03-29 11:04:37] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:04:37] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:04:37] 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 `created_at` desc [2024-03-29 11:04: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`.`expires_on` > '2024-03-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-03-29 11:04:41] 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 `created_at` desc [2024-03-29 11:04: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`.`expires_on` > '2024-03-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-03-29 11:04:41] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 11:05:20] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:05:20] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:05:20] 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 `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 11: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-03-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-03-29 11:09:14] 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 `created_at` desc [2024-03-29 11: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-03-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-03-29 11:09:14] 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 `created_at` desc [2024-03-29 11: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-03-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-03-29 11:09:14] 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 `created_at` desc [2024-03-29 11: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` = ?) 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-03-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-03-29 11:09:15] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-29 11:09:15] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 11:10:35] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:10:35] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:10:35] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-03-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-03-29 11:10:39] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-29 11:10:39] 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 `created_at` desc [2024-03-29 11:11: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-03-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-03-29 11:11:14] 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 `created_at` desc [2024-03-29 11:11: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-03-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-03-29 11:11:14] 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 `created_at` desc [2024-03-29 11:11: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-03-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-03-29 11:11:14] 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 `created_at` desc [2024-03-29 11:11:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 11:11:15] 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 `created_at` desc [2024-03-29 11:11:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 11:11:15] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-03-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-03-29 11:11:23] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-29 11:11:23] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 11:14:31] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:14:31] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:14:31] 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 `created_at` desc [2024-03-29 11:14: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`.`expires_on` > '2024-03-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-03-29 11:14:36] 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 `created_at` desc [2024-03-29 11:14: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`.`expires_on` > '2024-03-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-03-29 11:14:36] 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 `created_at` desc [2024-03-29 11:14: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-03-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-03-29 11:14:53] 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 `created_at` desc [2024-03-29 11:14: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-03-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-03-29 11:14:53] 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 `created_at` desc [2024-03-29 11:14: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-03-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-03-29 11:14:53] 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 `created_at` desc [2024-03-29 11:15: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`.`expires_on` > '2024-03-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-03-29 11:15:30] 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 `created_at` desc [2024-03-29 11:15: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`.`expires_on` > '2024-03-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-03-29 11:15:30] 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 `created_at` desc [2024-03-29 11:15: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-03-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-03-29 11:15:33] 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 `created_at` desc [2024-03-29 11:15: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-03-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-03-29 11:15:33] 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 `created_at` desc [2024-03-29 11:15: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-03-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-03-29 11:15:33] 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 `created_at` desc [2024-03-29 11: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` = ?) 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-03-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-03-29 11:15:34] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-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-03-29 11:15:34] 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 `created_at` desc [2024-03-29 11:42: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-03-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-03-29 11:42:55] 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 `created_at` desc [2024-03-29 11:42: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-03-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-03-29 11:42:55] 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 `created_at` desc [2024-03-29 11:42: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-03-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-03-29 11:42:55] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:43:11] 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-03-29 11: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:44:04] 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-03-29 11:44: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-03-29 11:44:19] 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-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:44:41] 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-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 11:44:50] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:44:50] 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 `created_at` desc [2024-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:44:50] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:46:13] 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-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:46:52] 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-03-29 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 11:46:55] 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-03-29 11:47: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:47:15] 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-03-29 11: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:47:36] 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-03-29 11:48: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-03-29 11:48:19] 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-03-29 11: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 11:51:42] 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-03-29 11:58: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-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-29 11:58: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-03-29 11:58: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-03-29 11:58: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-03-29 11:58: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-03-29 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-29 11: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` = ?) or (`task_settings`.`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-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 11:58:59] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:58:59] 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 `created_at` desc [2024-03-29 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 11:58:59] 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 `created_at` desc [2024-03-29 12:21: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-03-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-03-29 12:21:43] 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 `created_at` desc [2024-03-29 12:21: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-03-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-03-29 12:21:43] 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 `created_at` desc [2024-03-29 12:21: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-03-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-03-29 12:21:43] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 12:22:22] 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-03-29 12:33: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-03-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-03-29 12:33:43] 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 `created_at` desc [2024-03-29 12:33: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-03-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-03-29 12:33:43] 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 `created_at` desc [2024-03-29 12:33: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-03-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-03-29 12:33:43] 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 `created_at` desc [2024-03-29 12:33:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 12:33:43] 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 `created_at` desc [2024-03-29 12:33:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-29 12:33:43] 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 `created_at` desc [2024-03-29 12:33: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-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-29 12:33: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-03-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-03-29 12:34: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-03-29 12:34: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-01' and `tasks`.`due_by` > '2024-03-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-29 12:34: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-03-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-03-29 12:34: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-03-29 12:34: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-03-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-03-29 12:34:17] 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 `created_at` desc [2024-03-29 12:34: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-03-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-03-29 12:34:17] 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 `created_at` desc [2024-03-29 12:34: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-03-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-03-29 12:34:17] 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 `created_at` desc [2024-03-29 12:34: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-03-29 12:34: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-03-29 12:34: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-03-29 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 12:40:20] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:40:20] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:40:20] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 12:41:59] 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-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 12:42:02] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:42:02] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:42:02] 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 `created_at` desc [2024-03-29 12:42: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-03-29 12: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-03-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-03-29 12:42:04] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:42:04] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:42:04] 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 `created_at` desc [2024-03-29 12:42:07] 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-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 12:42:08] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:42:08] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:42:08] 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 `created_at` desc [2024-03-29 12:42: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-03-29 12:42: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-03-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-03-29 12:42:16] 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 `created_at` desc [2024-03-29 12:42: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-03-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-03-29 12:42:16] 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 `created_at` desc [2024-03-29 12:42: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-03-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-03-29 12:42:16] 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 `created_at` desc [2024-03-29 12:42: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-03-29 12:42: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-03-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-03-29 12:42:19] 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 `created_at` desc [2024-03-29 12:42: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-03-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-03-29 12:42:19] 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 `created_at` desc [2024-03-29 12:42: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-03-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-03-29 12:42:19] 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 `created_at` desc [2024-03-29 12: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`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-29 12:42:33] 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 `created_at` desc [2024-03-29 12: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`.`expires_on` > '2024-03-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-03-29 12:42:33] 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 `created_at` desc [2024-03-29 12:43: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-03-29 12:43:30] 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-03-29 12:43: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`.`expires_on` > '2024-03-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-03-29 12:43:57] 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 `created_at` desc [2024-03-29 12:43: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`.`expires_on` > '2024-03-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-03-29 12:43:57] 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 `created_at` desc [2024-03-29 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`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-29 12:46:13] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 12:46: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`.`expires_on` > '2024-03-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-03-29 12:46:51] 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 `created_at` desc [2024-03-29 12:46: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`.`expires_on` > '2024-03-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-03-29 12:46:51] 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 `created_at` desc [2024-03-29 12:47: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`.`expires_on` > '2024-03-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-03-29 12:47:05] 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 `created_at` desc [2024-03-29 12:47: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`.`expires_on` > '2024-03-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-03-29 12:47:05] 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 `created_at` desc [2024-03-29 12:47: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-03-29 12:47:16] 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-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-03-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-03-29 12:47:27] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-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-03-29 12:47:27] 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 `created_at` desc [2024-03-29 12:47: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-03-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-03-29 12:47:44] 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 `created_at` desc [2024-03-29 12:47: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-03-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-03-29 12:47:44] 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 `created_at` desc [2024-03-29 12:47: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-03-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-03-29 12:47:44] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:16] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:17] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:17] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 12:48:18] 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-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:20] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:20] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:20] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 12:48:22] 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-03-29 12:48: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-03-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-03-29 12:48:23] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:23] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:23] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 12:48:26] 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-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:28] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:28] 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 `created_at` desc [2024-03-29 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:48:28] 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 `created_at` desc [2024-03-29 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-29 12:48: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-03-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-03-29 12:48:31] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:31] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:31] 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 `created_at` desc [2024-03-29 12: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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-29 12:48: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-03-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-03-29 12:48:36] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:36] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:36] 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 `created_at` desc [2024-03-29 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 12:48:37] 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-03-29 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-29 12:48: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-03-29 12:48:41] 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-03-29 12: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-03-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-03-29 12:48:43] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:48:43] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:48:43] 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 `created_at` desc [2024-03-29 12:48: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 12:48:44] 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-03-29 12:48: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-03-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-03-29 12:48:46] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:46] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:46] 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 `created_at` desc [2024-03-29 12:48: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-03-29 12:48:48] 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-03-29 12:48: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-03-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-03-29 12:48:49] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:49] 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 `created_at` desc [2024-03-29 12:48: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-03-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-03-29 12:48:49] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-29 12:48:58] 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-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 12:49:30] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:49:30] 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 `created_at` desc [2024-03-29 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 12:49:30] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:50:08] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:50:08] 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 `created_at` desc [2024-03-29 12: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-03-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-03-29 12:50:08] 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 `created_at` desc [2024-03-29 13:08: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`.`expires_on` > '2024-03-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-03-29 13:08:13] 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 `created_at` desc [2024-03-29 13:08: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`.`expires_on` > '2024-03-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-03-29 13:08:13] 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 `created_at` desc [2024-03-29 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-29 13:33:33] 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 `created_at` desc [2024-03-29 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 13:33:33] 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 `created_at` desc [2024-03-29 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-29 13:33:33] 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 `created_at` desc [2024-03-29 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-29 13:33:36] 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-03-29 15:36:27] local.DEBUG: existin Emails: jerry@gmail.com,john@gmail.com,rakesh@gmail.com [2024-03-29 15:36:27] local.DEBUG: These emails do not exist in GroupMember: test22@gmail.com, test22@gmail.com, test@gmail.com, test@gmail.com, test@gmail.com, test@gmail.com, test22@gmail.com, test@gmail.com, test@gmail.com, test@gmail.com, test22@gmail.com, test22@gmail.com, test@gmail.com [2024-03-29 15:36: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":"test22@gmail.com","name":"test22@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 test22@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:27] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1b7442e0-ede2-11ee-9151-5254000b1a0e.18e8adaee0e","object":"email"} [2024-03-29 15:36: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":"test22@gmail.com","name":"test22@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 test22@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:27] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1ba31b10-ede2-11ee-833a-525400103106.18e8adaef41","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:28] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1bd3a0f0-ede2-11ee-9151-5254000b1a0e.18e8adaf07f","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:28] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1c0140a0-ede2-11ee-a94c-525400d4bb1c.18e8adaf1aa","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:28] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1c2e1d00-ede2-11ee-833a-525400103106.18e8adaf2d0","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:28] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1c5c58f0-ede2-11ee-b145-5254004d4100.18e8adaf3ff","object":"email"} [2024-03-29 15:36: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":"test22@gmail.com","name":"test22@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 test22@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1c8b0a10-ede2-11ee-a834-525400fa05f6.18e8adaf531","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1cb99420-ede2-11ee-9de0-52540064429e.18e8adaf662","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1ce81e30-ede2-11ee-833a-525400103106.18e8adaf793","object":"email"} [2024-03-29 15:36: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":"test@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1d1a03a0-ede2-11ee-9de0-52540064429e.18e8adaf8da","object":"email"} [2024-03-29 15:36: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":"test22@gmail.com","name":"test22@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 test22@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1d4a1450-ede2-11ee-a94c-525400d4bb1c.18e8adafa15","object":"email"} [2024-03-29 15:36: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":"test22@gmail.com","name":"test22@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 test22@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1d7c47e0-ede2-11ee-b145-5254004d4100.18e8adafb5e","object":"email"} [2024-03-29 15:36: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@gmail.com","name":"test@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 test@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-29 15:36:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1dafdb01-ede2-11ee-aa7b-525400ae9113.18e8adafcae","object":"email"} [2024-03-29 15:38: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":"applejohn@testing.com","name":"applejohn@testing.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 applejohn@testing.com,<\\/p>\\n <p>You have been invited to join the \\"test group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: test 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-03-29 15:38:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5859dc60-ede2-11ee-a9f9-525400d6cd4f.18e8adc7d26","object":"email"} [2024-03-30 04:54: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-03-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-03-30 04:54:24] 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 `created_at` desc [2024-03-30 04:54: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-03-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-03-30 04:54:24] 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 `created_at` desc [2024-03-30 04:54: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-03-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-03-30 04:54:24] 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 `created_at` desc [2024-03-30 05:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 05:50:11] 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 `created_at` desc [2024-03-30 05:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 05:50:11] 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 `created_at` desc [2024-03-30 05:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 05:50:13] 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 `created_at` desc [2024-03-30 05:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 05:50:13] 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 `created_at` desc [2024-03-30 05:50: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 05:50: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-03-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-03-30 05:50:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 05:50:24] 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 `created_at` desc [2024-03-30 05:50:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 05:50:24] 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 `created_at` desc [2024-03-30 05:52: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-03-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-03-30 05:52:07] 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 `created_at` desc [2024-03-30 05:52: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-03-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-03-30 05:52:07] 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 `created_at` desc [2024-03-30 05:52: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-03-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-03-30 05:52:07] 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 `created_at` desc [2024-03-30 05:52: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`.`expires_on` > '2024-03-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-03-30 05:52:29] 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 `created_at` desc [2024-03-30 05:52: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`.`expires_on` > '2024-03-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-03-30 05:52:29] 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 `created_at` desc [2024-03-30 05:52: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-03-30 05:52: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`.`expires_on` > '2024-03-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-03-30 05:52:53] 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 `created_at` desc [2024-03-30 05:52: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`.`expires_on` > '2024-03-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-03-30 05:52:53] 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 `created_at` desc [2024-03-30 05:53: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`.`expires_on` > '2024-03-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-03-30 05:53:19] 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 `created_at` desc [2024-03-30 05:53: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`.`expires_on` > '2024-03-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-03-30 05:53:19] 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 `created_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 05:54:50] 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 `created_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 05:54:50] 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 `created_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 05:54:50] 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 `updated_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 05:54:50] 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 `created_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 05:54:50] 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 `created_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 05:54:50] 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 `created_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 05:54:50] 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 `updated_at` desc [2024-03-30 05:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 05:54:50] 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 `created_at` desc [2024-03-30 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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 05:55: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 05:55: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-03-30 05:55: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-03-30 05:55: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-03-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-03-30 05:55:31] 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 `created_at` desc [2024-03-30 05:55: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-03-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-03-30 05:55:31] 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 `created_at` desc [2024-03-30 05:55: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-03-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-03-30 05:55:31] 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 `created_at` desc [2024-03-30 05:55: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 05:55: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-03-30 05:55: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-03-30 05:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 05:55:43] 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 `created_at` desc [2024-03-30 05:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 05:55:43] 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 `created_at` desc [2024-03-30 05:55: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 05:55: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-03-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-03-30 06:00: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-03-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-03-30 06:00:31] 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 `created_at` desc [2024-03-30 06:00: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-03-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-03-30 06:00:31] 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 `created_at` desc [2024-03-30 06:00: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-03-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-03-30 06:00:31] 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 `created_at` desc [2024-03-30 06:07:50] local.DEBUG: existin Emails: jerry@gmail.com,john@gmail.com,rakesh@gmail.com,test22@gmail.com,test@gmail.com [2024-03-30 06:07:50] local.DEBUG: These emails do not exist in GroupMember: john112@gmail.com [2024-03-30 06:07: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":"john112@gmail.com","name":"john112@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 john112@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-30 06:07:51] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d6f83750-ee5b-11ee-a9f9-525400d6cd4f.18e8df8b745","object":"email"} [2024-03-30 06:16: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-03-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-03-30 06:16:44] 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 `created_at` desc [2024-03-30 06:16: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-03-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-03-30 06:16:44] 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 `created_at` desc [2024-03-30 06:16: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-03-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-03-30 06:16:44] 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 `created_at` desc [2024-03-30 06:21: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-03-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-03-30 06:21:48] 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 `created_at` desc [2024-03-30 06:21: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-03-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-03-30 06:21:48] 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 `created_at` desc [2024-03-30 06:21: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-03-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-03-30 06:21:48] 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 `created_at` desc [2024-03-30 06:21: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 06:21: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-03-30 06:21: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-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 06: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-03-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-03-30 06:28:07] 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 `created_at` desc [2024-03-30 06: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-03-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-03-30 06:28:07] 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 `created_at` desc [2024-03-30 06: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-03-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-03-30 06:28:07] 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 `created_at` desc [2024-03-30 06:30:10] local.DEBUG: existin Emails: jerry@gmail.com,john@gmail.com [2024-03-30 06:30:10] local.DEBUG: These emails do not exist in GroupMember: rrr@gmail.com [2024-03-30 06: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":"rrr@gmail.com","name":"rrr@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 rrr@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-30 06:30:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f56d94c0-ee5e-11ee-9151-5254000b1a0e.18e8e0d280c","object":"email"} [2024-03-30 06:40: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":"raketyyyysh@gmail.com","name":"raketyyyysh@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 raketyyyysh@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-03-30 06:40:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.55158990-ee60-11ee-9151-5254000b1a0e.18e8e1628a9","object":"email"} [2024-03-30 06:50:31] local.DEBUG: existin Emails: jerry@gmail.com,john@gmail.com [2024-03-30 06:50:31] local.DEBUG: These emails do not exist in GroupMember: john1@gmail.com [2024-03-30 06:50: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":"john1@gmail.com","name":"john1@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 john1@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Sachin\\u0019s Group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s 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-03-30 06:50:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cd06d700-ee61-11ee-833a-525400103106.18e8e1fc870","object":"email"} [2024-03-30 06:51:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:51:28] 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 `created_at` desc [2024-03-30 06:52:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 06:52:27] 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 `created_at` desc [2024-03-30 06:52:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:52:27] 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 `created_at` desc [2024-03-30 06:52:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 06:52:28] 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 `created_at` desc [2024-03-30 06:52:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:52:28] 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 `created_at` desc [2024-03-30 06:52:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 06:52:35] 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 `created_at` desc [2024-03-30 06:52:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:52:35] 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 `created_at` desc [2024-03-30 06:53:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:53:28] 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 `created_at` desc [2024-03-30 06:54:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:54:10] 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 `created_at` desc [2024-03-30 06:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 06:56:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:56:03] 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 `created_at` desc [2024-03-30 06:57:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 06:57:58] 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-03-30 06:58:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 06:58:00] 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 `created_at` desc [2024-03-30 06:58:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 06:58:00] 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 `created_at` desc [2024-03-30 06:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 06:59:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 06:59:58] 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-03-30 07:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:00:12] 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 `created_at` desc [2024-03-30 07:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:00:12] 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 `created_at` desc [2024-03-30 07:01: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:01: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-03-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-03-30 07:02:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:02:10] 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 `created_at` desc [2024-03-30 07:02:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:02:10] 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 `created_at` desc [2024-03-30 07:02:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 07:02:12] 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-03-30 07:02:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:02:24] 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 `created_at` desc [2024-03-30 07:02:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:02:24] 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 `created_at` desc [2024-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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 10 [2024-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-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-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-30' 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 10 [2024-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-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-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-30' 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 10 [2024-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-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-03-30 07:02: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-03-30 07:02:53] local.DEBUG: task visible_to: [2024-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-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-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-30' 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 10 [2024-03-30 07:02: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:02: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-03-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-03-30 07:03: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:03: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-03-30' 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 10 [2024-03-30 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07:03: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:03: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-03-30' 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 10 [2024-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-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-03-30 07:03: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:03: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-03-30' 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 10 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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 10 [2024-03-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-03-30 07:05: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-03-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-03-30 07:05:15] 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 `created_at` desc [2024-03-30 07:05: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-03-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-03-30 07:05:15] 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 `created_at` desc [2024-03-30 07:05: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-03-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-03-30 07:05:15] 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 `created_at` desc [2024-03-30 07: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`.`expires_on` > '2024-03-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-03-30 07:05:57] 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 `created_at` desc [2024-03-30 07: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`.`expires_on` > '2024-03-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-03-30 07:05:57] 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 `created_at` desc [2024-03-30 07:06: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-03-30 07:06:05] 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-03-30 07:06: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`.`expires_on` > '2024-03-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-03-30 07:06:26] 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 `created_at` desc [2024-03-30 07:06: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-03-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-03-30 07:06:27] 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 `created_at` desc [2024-03-30 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 07:06:38] 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-03-30 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 07:07:23] 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 `created_at` desc [2024-03-30 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 07:07:23] 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 `created_at` desc [2024-03-30 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 07:07:23] 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 `created_at` desc [2024-03-30 07:07: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-03-30 07:07:26] 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-03-30 07:08: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:08: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-03-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-03-30 07:08: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:08: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-03-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-03-30 07:08:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:08:16] 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 `created_at` desc [2024-03-30 07:08:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:08:16] 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 `created_at` desc [2024-03-30 07:08: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:08: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-03-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-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 07:12:04] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 07:12:04] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 07:12:04] 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 `created_at` desc [2024-03-30 07:12: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-03-30 07:12:16] 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-03-30 07:12: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-03-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-03-30 07:12:29] 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 `created_at` desc [2024-03-30 07:12: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-03-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-03-30 07:12:29] 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 `created_at` desc [2024-03-30 07:12: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-03-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-03-30 07:12:29] 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 `created_at` desc [2024-03-30 07:12: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-03-30 07:12:31] 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-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 07:15:09] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 07:15:09] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 07:15:09] 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 `created_at` desc [2024-03-30 07:15: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-03-30 07:15:17] 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-03-30 07:16: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-03-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-03-30 07:16:50] 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 `created_at` desc [2024-03-30 07:16: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-03-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-03-30 07:16:50] 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 `created_at` desc [2024-03-30 07:16: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-03-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-03-30 07:16:50] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 07:16:53] 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-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 07:16:55] 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-03-30 07: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 07:17:01] 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-03-30 07:17: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-03-30 07:17:07] 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-03-30 07: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-03-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-03-30 07:20:02] 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 `created_at` desc [2024-03-30 07: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-03-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-03-30 07:20:02] 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 `created_at` desc [2024-03-30 07: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-03-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-03-30 07:20:02] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 07: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 07: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 07:20:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:20:48] 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 `created_at` desc [2024-03-30 07:20:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:20:48] 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 `created_at` desc [2024-03-30 07:22: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:22: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-03-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-03-30 07:22: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:22: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-03-30' 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 10 [2024-03-30 07:22: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:22: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-03-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-03-30 07:22: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:22: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-03-30' 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 10 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07:22: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-03-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-03-30 07:22:45] 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 `created_at` desc [2024-03-30 07:22: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-03-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-03-30 07:22:45] 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 `created_at` desc [2024-03-30 07:22: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-03-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-03-30 07:22:45] 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 `created_at` desc [2024-03-30 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 07:22:48] 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-03-30 07:22: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-03-30 07:22:58] 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-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 07:23: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-03-30 07:23:12] 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07:23: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:23: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-03-30' 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 10 [2024-03-30 07:24: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-03-30 07:24:42] 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-03-30 07: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 07:24:56] 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-03-30 07:27:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:27:30] 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 `created_at` desc [2024-03-30 07:27:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:27:30] 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 `created_at` desc [2024-03-30 07:27: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:27: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-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07:27: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:27: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07:27: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:27: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-03-30' 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-03-30 07:27: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:27: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-03-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-03-30 07:27: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:27: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-03-30' 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-03-30 07:27: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:27: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-03-30' 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-03-30 07:28:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:28:19] 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 `created_at` desc [2024-03-30 07:28:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:28:19] 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 `created_at` desc [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07:28: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:28: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-03-30' 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-03-30 07:28: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:28: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-03-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-03-30 07:28: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:28: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-03-30' 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-03-30 07:28: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:28: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:28: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:28: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:29:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:29:11] 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 `created_at` desc [2024-03-30 07:29:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:29:11] 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 `created_at` desc [2024-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-30' 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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-30' 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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-30' 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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:29: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:29: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-03-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-03-30 07:32:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 07:32:18] 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 `created_at` desc [2024-03-30 07:32:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 07:32:18] 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 `created_at` desc [2024-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-30' 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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-30' 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-03-30 07:32: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-30' 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-03-30 07:32: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:32: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:33: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:33: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:33: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:33: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-03-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-03-30 07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07: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-03-30' 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-03-30 07:33: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:33: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-03-30' 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-03-30 07:33: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 07:33: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-03-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-03-30 07:36: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-03-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-03-30 07:36:17] 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 `created_at` desc [2024-03-30 07:36: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-03-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-03-30 07:36:17] 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 `created_at` desc [2024-03-30 07:36: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-03-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-03-30 07:36:17] 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 `created_at` desc [2024-03-30 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 07:36:23] 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-03-30 07:36: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-03-30 07:36:36] 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-03-30 07:40: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-03-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-03-30 07:40:44] 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 `created_at` desc [2024-03-30 07:40: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-03-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-03-30 07:40:44] 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 `created_at` desc [2024-03-30 07:40: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-03-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-03-30 07:40:44] 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 `created_at` desc [2024-03-30 07:40: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-03-30 07:40: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-03-30 07:40: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-03-30 07:40:48] 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-03-30 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 07:41:09] 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-03-30 07:41: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-03-30 07:41:12] 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-03-30 07:45: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-03-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-03-30 07:45:27] 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 `created_at` desc [2024-03-30 07:45: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-03-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-03-30 07:45:27] 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 `created_at` desc [2024-03-30 07:45: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-03-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-03-30 07:45:27] 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 `created_at` desc [2024-03-30 07:45: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-03-30 07:45:29] 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-03-30 07:45: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-03-30 07:45:32] 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-03-30 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 08:35:28] 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 `created_at` desc [2024-03-30 08:35: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-03-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-03-30 08:35:28] 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 `created_at` desc [2024-03-30 08:35: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-03-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-03-30 08:35:28] 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 `created_at` desc [2024-03-30 08: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-03-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-03-30 08:36:54] 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 `created_at` desc [2024-03-30 08: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-03-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-03-30 08:36:54] 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 `created_at` desc [2024-03-30 08: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-03-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-03-30 08:36:54] 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 `created_at` desc [2024-03-30 08:37: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 08:37: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-03-30' 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-03-30 08:37:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 08:37:54] 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 `created_at` desc [2024-03-30 08:37:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 08:37:54] 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 `created_at` desc [2024-03-30 08:39:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 08:39:31] 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 `created_at` desc [2024-03-30 08:39:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-30 08:39:31] 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 `created_at` desc [2024-03-30 08: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 08: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 08:46: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 08:46: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-30' 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-03-30 08:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 08:59:18] 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 `created_at` desc [2024-03-30 08:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 08:59:18] 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 `created_at` desc [2024-03-30 08:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 08:59:18] 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 `created_at` desc [2024-03-30 08:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 08:59:18] 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 `created_at` desc [2024-03-30 08:59: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 08:59: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-03-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-03-30 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 08:59:44] 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-03-30 08: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 08:59:48] 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-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-30 09:01: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 09:01: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-03-30' 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-03-30 09:01:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:13] 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 `created_at` desc [2024-03-30 09:01:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:01:13] 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 `created_at` desc [2024-03-30 09:01:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:16] 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 `created_at` desc [2024-03-30 09:01:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:16] 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 `created_at` desc [2024-03-30 09:01:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:22] 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 `created_at` desc [2024-03-30 09:01:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:01:22] 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 `created_at` desc [2024-03-30 09:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:24] 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 `created_at` desc [2024-03-30 09:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:24] 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 `created_at` desc [2024-03-30 09:01:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:01:43] 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 `created_at` desc [2024-03-30 09:01:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:01:43] 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 `created_at` desc [2024-03-30 09:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:02:18] 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 `created_at` desc [2024-03-30 09:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:02:18] 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 `created_at` desc [2024-03-30 09:03: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 09:03: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-03-30' 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-03-30 09:03:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:03:51] 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 `created_at` desc [2024-03-30 09:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:04:24] 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 `created_at` desc [2024-03-30 09:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:04:24] 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 `created_at` desc [2024-03-30 09:04:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:04:52] 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 `created_at` desc [2024-03-30 09:04:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:04:52] 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 `created_at` desc [2024-03-30 09:04:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:04:56] 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 `created_at` desc [2024-03-30 09:04:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:04:56] 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 `created_at` desc [2024-03-30 09:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:04:59] 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 `created_at` desc [2024-03-30 09:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:04:59] 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 `created_at` desc [2024-03-30 09:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:05:02] 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 `created_at` desc [2024-03-30 09:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:05:02] 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 `created_at` desc [2024-03-30 09:05:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:05:04] 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 `created_at` desc [2024-03-30 09:05:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:05:04] 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 `created_at` desc [2024-03-30 09:05:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:05:06] 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 `created_at` desc [2024-03-30 09:05:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:05:06] 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 `created_at` desc [2024-03-30 09:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:05:09] 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 `created_at` desc [2024-03-30 09:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:05:09] 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 `created_at` desc [2024-03-30 09:05:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:05:11] 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 `created_at` desc [2024-03-30 09:05:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:05:11] 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 `created_at` desc [2024-03-30 09:08:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:08:02] 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 `created_at` desc [2024-03-30 09:08:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:08:02] 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 `created_at` desc [2024-03-30 09:08:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:08:33] 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 `created_at` desc [2024-03-30 09:08:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:08:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:08:46] 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 `created_at` desc [2024-03-30 09:08:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:08:46] 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 `created_at` desc [2024-03-30 09:10:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:10:01] 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-03-30 09:10:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:10:21] 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-03-30 09:10:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:10:22] 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-03-30 09:10:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:10:32] 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 `created_at` desc [2024-03-30 09:10:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:10:32] 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 `created_at` desc [2024-03-30 09:15:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:02] 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 `created_at` desc [2024-03-30 09:15:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:02] 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 `created_at` desc [2024-03-30 09:15:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:15:09] 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-03-30 09:15:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:10] 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 `created_at` desc [2024-03-30 09:15:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:10] 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 `created_at` desc [2024-03-30 09:15:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:13] 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 `created_at` desc [2024-03-30 09:15:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:13] 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 `created_at` desc [2024-03-30 09:15:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:15] 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 `created_at` desc [2024-03-30 09:15:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:15] 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 `created_at` desc [2024-03-30 09:15:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:18] 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 `created_at` desc [2024-03-30 09:15:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:18] 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 `created_at` desc [2024-03-30 09:15:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:25] 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 `created_at` desc [2024-03-30 09:15:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:25] 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 `created_at` desc [2024-03-30 09:15:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:31] 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 `created_at` desc [2024-03-30 09:15:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:31] 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 `created_at` desc [2024-03-30 09:15:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:33] 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 `created_at` desc [2024-03-30 09:15:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:33] 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 `created_at` desc [2024-03-30 09:15:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:35] 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 `created_at` desc [2024-03-30 09:15:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:35] 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 `created_at` desc [2024-03-30 09:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:15:37] 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 `created_at` desc [2024-03-30 09:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:15:37] 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 `created_at` desc [2024-03-30 09:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:16:26] 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 `created_at` desc [2024-03-30 09:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:16:26] 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 `created_at` desc [2024-03-30 09:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:16:45] 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 `created_at` desc [2024-03-30 09:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:16:45] 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 `created_at` desc [2024-03-30 09:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 09:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 09:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 09:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 09:17:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:17:30] 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 `created_at` desc [2024-03-30 09:17:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:17:30] 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 `created_at` desc [2024-03-30 09:17:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:17:31] 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 `created_at` desc [2024-03-30 09:17:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:17:31] 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 `created_at` desc [2024-03-30 09:17:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:17:36] 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 `created_at` desc [2024-03-30 09:17:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:17:36] 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 `created_at` desc [2024-03-30 09:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:18:23] 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 `created_at` desc [2024-03-30 09:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:18:23] 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 `created_at` desc [2024-03-30 09:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:18:53] 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-03-30 09:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:18:54] 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 `created_at` desc [2024-03-30 09:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:18:54] 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 `created_at` desc [2024-03-30 09:19:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:19:00] 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 `created_at` desc [2024-03-30 09:19:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:19:00] 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 `created_at` desc [2024-03-30 09:20:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:20:26] 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 `created_at` desc [2024-03-30 09:20:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:20:26] 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 `created_at` desc [2024-03-30 09:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:20:30] 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-03-30 09:20:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:20:31] 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 `created_at` desc [2024-03-30 09:20:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:20:31] 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 `created_at` desc [2024-03-30 09:20:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:20:36] 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 `created_at` desc [2024-03-30 09:20:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:20:36] 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 `created_at` desc [2024-03-30 09:21:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:21:36] 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 `created_at` desc [2024-03-30 09:21:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:21:36] 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 `created_at` desc [2024-03-30 09:22:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:22:15] 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 `created_at` desc [2024-03-30 09:22:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:22:15] 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 `created_at` desc [2024-03-30 09:25:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:25:22] 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 `created_at` desc [2024-03-30 09:25:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:25:22] 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 `created_at` desc [2024-03-30 09:25:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:25:30] 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 `created_at` desc [2024-03-30 09:25:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 5 [2024-03-30 09:25:30] 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 `created_at` desc [2024-03-30 09: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 09:42:07] 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 `created_at` desc [2024-03-30 09: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:42:07] 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 `created_at` desc [2024-03-30 09: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:42:07] 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 `created_at` desc [2024-03-30 09:42: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-03-30 09:42:10] 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-03-30 09: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-03-30 09:42:14] 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-03-30 09: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 09:42:31] 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-03-30 09: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-03-30 09:42:35] 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-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 09:45:59] 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-03-30 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 09:46:02] 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-03-30 09:51:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:51:39] 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-03-30 09:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 09:51:41] 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 `created_at` desc [2024-03-30 09:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 09:51:41] 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 `created_at` desc [2024-03-30 09:51:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-03-30 09:51:51] 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-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-30 09: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-03-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-03-30 09:52:17] 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 `created_at` desc [2024-03-30 09: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-03-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-03-30 09:52:17] 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 `created_at` desc [2024-03-30 09: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-03-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-03-30 09: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-03-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-03-30 09:52:17] 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 `created_at` desc [2024-03-30 09:52:17] 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 `created_at` desc [2024-03-30 09: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:18] 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 `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 09:52:19] 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 `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:52:19] 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 `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:52:19] 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 `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:20] 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 `created_at` desc [2024-03-30 09:52: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-03-30 09:52: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-03-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-03-30 09:52:30] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:30] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:30] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:34] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:34] 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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52:34] 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 `created_at` desc [2024-03-30 09:52: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-03-30 09:52:45] 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-03-30 09:52: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-03-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-03-30 09:52: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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52: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 `created_at` desc [2024-03-30 09:52: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-03-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-03-30 09:52: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 `created_at` desc [2024-03-30 09:52: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-03-30 09:52:50] 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-03-30 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 09:52:51] 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-03-30 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 09:53:04] 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-03-30 09: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-03-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-03-30 09:53:08] 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 `created_at` desc [2024-03-30 09: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-03-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-03-30 09:53:08] 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 `created_at` desc [2024-03-30 09: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-03-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-03-30 09:53:08] 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 `created_at` desc [2024-03-30 09:53: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-03-30 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 09:53:34] 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 `created_at` desc [2024-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:53:34] 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 `created_at` desc [2024-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:53:34] 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 `created_at` desc [2024-03-30 09:53: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-03-30 09: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-03-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-03-30 09:55:33] 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 `created_at` desc [2024-03-30 09: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:55:33] 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 `created_at` desc [2024-03-30 09: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-03-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-03-30 09:55:33] 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 `created_at` desc [2024-03-30 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 09:55:44] 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-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 09:55:46] 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-03-30 09: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` = ?) or (`task_settings`.`visible_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-03-30 09: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 09:56:18] 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-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 09:56:22] 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 `created_at` desc [2024-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:56:22] 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 `created_at` desc [2024-03-30 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 09:56:22] 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 `created_at` desc [2024-03-30 09: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` = ?) or (`task_settings`.`visible_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-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:04:46] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:04:46] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:04:46] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:14:22] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:14:22] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:14:22] 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 `created_at` desc [2024-03-30 10:14: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-03-30 10:14:33] 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-03-30 10:14: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-03-30 10:14:36] 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-03-30 10:18: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-03-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-03-30 10:18:36] 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 `created_at` desc [2024-03-30 10:18: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-03-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-03-30 10:18:36] 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 `created_at` desc [2024-03-30 10:18: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-03-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-03-30 10:18:36] 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 `created_at` desc [2024-03-30 10:19: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-03-30 10:19:36] 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-03-30 10: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-03-30 10:19:37] 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-03-30 10:21: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-03-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-03-30 10:21:21] 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 `created_at` desc [2024-03-30 10:21: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-03-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-03-30 10:21:21] 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 `created_at` desc [2024-03-30 10:21: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-03-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-03-30 10:21:21] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 10:21:28] 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-03-30 10: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-03-30 10:21:29] 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-03-30 10:23: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":"john@gmail.com","name":"John 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 John 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> 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-03-30 10:23:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.871f5960-ee7f-11ee-aa7b-525400ae9113.18e8ee299f6","object":"email"} [2024-03-30 10:25: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-03-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-03-30 10:25:45] 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 `created_at` desc [2024-03-30 10:25: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-03-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-03-30 10:25:45] 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 `created_at` desc [2024-03-30 10:25: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-03-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-03-30 10:25:45] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 10:27:43] 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-03-30 10:30: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":"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 \\"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-03-30 10:30:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.986a4530-ee80-11ee-a94c-525400d4bb1c.18e8ee99903","object":"email"} [2024-03-30 10:31: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> my test task<\\/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-03-30 10:31:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a574bda0-ee80-11ee-833a-525400103106.18e8ee9ee7a","object":"email"} [2024-03-30 10:32: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-03-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-03-30 10:32:33] 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 `created_at` desc [2024-03-30 10:32: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-03-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-03-30 10:32:33] 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 `created_at` desc [2024-03-30 10:32: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-03-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-03-30 10:32:33] 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 `created_at` desc [2024-03-30 10:33: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":"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: 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-03-30 10:33:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f9b30e30-ee80-11ee-a9f9-525400d6cd4f.18e8eec1693","object":"email"} [2024-03-30 10:34: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":"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 \\"Rakesh's ka apna group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Rakesh's ka apna 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-03-30 10:34:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.196c8bc0-ee81-11ee-9de0-52540064429e.18e8eece67c","object":"email"} [2024-03-30 10:34:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 10:34:56] 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 `created_at` desc [2024-03-30 10:34:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 10:34:56] 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 `created_at` desc [2024-03-30 10:34:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 10:34:56] 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 `updated_at` desc [2024-03-30 10:34:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 10:34:56] 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 `created_at` desc [2024-03-30 10:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 10:35:34] 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 `created_at` desc [2024-03-30 10:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 10:35:34] 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 `created_at` desc [2024-03-30 10:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 10:35:34] 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 `updated_at` desc [2024-03-30 10:35:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 10:35:34] 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 `created_at` desc [2024-03-30 10:35: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 10:35: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-03-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-03-30 10:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 10:36:23] 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 `created_at` desc [2024-03-30 10:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 10:36:23] 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 `created_at` desc [2024-03-30 10:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 10:36:23] 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 `updated_at` desc [2024-03-30 10:36:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 10:36:24] 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 `created_at` desc [2024-03-30 10:36: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 10:36: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-03-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-03-30 10:36:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 10:36:45] 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 `created_at` desc [2024-03-30 10:36:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 10:36:45] 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 `created_at` desc [2024-03-30 10:36:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 10:36:45] 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 `updated_at` desc [2024-03-30 10:36:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 10:36:45] 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 `created_at` desc [2024-03-30 10:36:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 10:36:52] 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 `created_at` desc [2024-03-30 10:36:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 10:36:52] 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 `created_at` desc [2024-03-30 10: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 10: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-03-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-03-30 10:37:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 10:37:28] 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 `created_at` desc [2024-03-30 10:37:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 10:37:28] 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 `created_at` desc [2024-03-30 10:37: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 10:37: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-03-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-03-30 10:37: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-03-30 10:37:40] local.DEBUG: task visible_to: [2024-03-30 10: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-03-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-03-30 10:38:46] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:38:46] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:38:46] 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 `created_at` desc [2024-03-30 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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10:42: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-03-30 10:42:28] 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-03-30 10: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-03-30 10:42:35] 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-03-30 10:42: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-03-30 10:42:55] 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-03-30 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:43:07] 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-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:43:36] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:43:36] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:43:36] 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 `created_at` desc [2024-03-30 10:43: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-03-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-03-30 10:43:46] 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 `created_at` desc [2024-03-30 10:43: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-03-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-03-30 10:43:46] 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 `created_at` desc [2024-03-30 10:43: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-03-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-03-30 10:43:46] 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 `created_at` desc [2024-03-30 10:43: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-03-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-03-30 10:43:54] 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 `created_at` desc [2024-03-30 10:43: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-03-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-03-30 10:43:54] 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 `created_at` desc [2024-03-30 10:43: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-03-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-03-30 10:43:54] 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 `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 10:44:05] 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-03-30 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:44:06] 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-03-30 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:44:25] 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-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:45:42] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:45:42] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10:45: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-03-30 10:45:45] 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-03-30 10: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-03-30 10:45: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-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10:50: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:50:09] 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-03-30 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-30 10:51: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-03-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-03-30 10:51:30] 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 `created_at` desc [2024-03-30 10:51: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-03-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-03-30 10:51:30] 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 `created_at` desc [2024-03-30 10:51: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-03-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-03-30 10:51:30] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:51:33] 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-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:51:34] 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-03-30 10:53: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-03-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-03-30 10:53:01] 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 `created_at` desc [2024-03-30 10:53: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-03-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-03-30 10:53:01] 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 `created_at` desc [2024-03-30 10:53: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-03-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-03-30 10:53:01] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:53:05] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:53:05] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:53:05] 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 `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:53:41] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:53:41] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:53:41] 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 `created_at` desc [2024-03-30 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-30 10:53:44] 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-03-30 10:53: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-03-30 10:53:46] 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-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:54:37] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:54:37] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:54:37] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:54:49] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:54:49] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:54:49] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:55:06] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:55:06] 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 `created_at` desc [2024-03-30 10: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-03-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-03-30 10:55:06] 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 `created_at` desc [2024-03-30 10: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-03-30 10:55:07] 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-03-30 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:55:24] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:55:24] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:55:24] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 10:55:27] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:55:27] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 10:55:27] 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 `created_at` desc [2024-03-30 10:56: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-03-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-03-30 10:56:32] 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 `created_at` desc [2024-03-30 10:56: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-03-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-03-30 10:56:32] 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 `created_at` desc [2024-03-30 10:56: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-03-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-03-30 10:56:32] 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 `created_at` desc [2024-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:56:41] 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-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:56:44] 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-03-30 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 10:59:57] 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-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11:04: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-03-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-03-30 11:04:56] 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 `created_at` desc [2024-03-30 11:04: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-03-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-03-30 11:04:56] 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 `created_at` desc [2024-03-30 11:04: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-03-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-03-30 11:04:56] 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 `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 11: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-03-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-03-30 11:06:41] 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 `created_at` desc [2024-03-30 11: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-03-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-03-30 11:06:41] 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 `created_at` desc [2024-03-30 11: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-03-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-03-30 11:06:41] 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 `created_at` desc [2024-03-30 11:06:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 11:06:55] 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 `created_at` desc [2024-03-30 11:06:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 11:06:55] 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 `created_at` desc [2024-03-30 11:06:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 11:06:55] 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 `updated_at` desc [2024-03-30 11:06:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 11:06:55] 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 `created_at` desc [2024-03-30 11:08: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":"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<\\/li>\\n <li><strong>Assigned To:<\\/strong> John 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-03-30 11:08:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cb54afd0-ee85-11ee-a9f9-525400d6cd4f.18e8f0bab4d","object":"email"} [2024-03-30 11:08: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-03-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-03-30 11:08:28] 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 `created_at` desc [2024-03-30 11:08: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-03-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-03-30 11:08:28] 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 `created_at` desc [2024-03-30 11:08: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-03-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-03-30 11:08:28] 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 `created_at` desc [2024-03-30 11:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 11:08:55] 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 `created_at` desc [2024-03-30 11:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 11:08:55] 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 `created_at` desc [2024-03-30 11:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 11:08:55] 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 `updated_at` desc [2024-03-30 11:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 11:08:55] 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 `created_at` desc [2024-03-30 11:09: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-03-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-03-30 11:09:37] 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 `created_at` desc [2024-03-30 11:09: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-03-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-03-30 11:09:37] 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 `created_at` desc [2024-03-30 11:09: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-03-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-03-30 11:09:37] 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 `created_at` desc [2024-03-30 11:09: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-03-30 11:09:51] local.INFO: it is a global product so preapproving this product. [2024-03-30 11:09:51] local.ERROR: not enough balance to purchase the product [2024-03-30 11:10:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 11:10:14] 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 `created_at` desc [2024-03-30 11:10:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 11:10:14] 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 `created_at` desc [2024-03-30 11:10:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 11:10:14] 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 `updated_at` desc [2024-03-30 11:10:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 11:10:14] 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 `created_at` desc [2024-03-30 11:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 4 [2024-03-30 11:10:37] 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 `created_at` desc [2024-03-30 11:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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 6 [2024-03-30 11:10:37] 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 `created_at` desc [2024-03-30 11:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-29' 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-03-30 11:10:37] 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 `updated_at` desc [2024-03-30 11:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 11:10:37] 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 `created_at` desc [2024-03-30 11:11: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-03-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-03-30 11:11:08] 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 `created_at` desc [2024-03-30 11:11: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-03-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-03-30 11:11:08] 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 `created_at` desc [2024-03-30 11:11: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-03-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-03-30 11:11:08] 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 `created_at` desc [2024-03-30 11:11: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-03-30 11:14: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11:14: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-03-30 11:14: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-03-30 11:14: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-03-30 11:34: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-03-30 11:34: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-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 11:40:38] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 11:40:38] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 11:40:38] 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 `created_at` desc [2024-03-30 11:45: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-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 11:46:09] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 11:46:09] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 11:46:09] 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 `created_at` desc [2024-03-30 11:46: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11:54: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-03-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-03-30 11:54:33] 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 `created_at` desc [2024-03-30 11:54: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-03-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-03-30 11:54:33] 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 `created_at` desc [2024-03-30 11:54: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-03-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-03-30 11:54:33] 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 `created_at` desc [2024-03-30 11:54: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-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 11:55:40] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 11:55:40] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 11:55:40] 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 `created_at` desc [2024-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11:56: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-03-30 11:56: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-03-30 11:56: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-03-30 11:57: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-04-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11:57: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-03-30 11:57: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-03-30 11:57: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-03-30 11:57: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 11:57: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-03-30 11:57: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-03-30 11: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:02: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-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 12:06:46] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:06:46] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:06:46] 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 `created_at` desc [2024-03-30 12:07: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-03-30 12:08: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-03-30 12:11: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:11: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-03-30 12:11: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-03-30 12:11: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:11: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:11: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-03-30 12:11: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-03-30 12: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:11: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:11: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-03-30 12:11: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-03-30 12:12: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-03-30 12:31: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-03-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-03-30 12:31:33] 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 `created_at` desc [2024-03-30 12:31: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-03-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-03-30 12:31:33] 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 `created_at` desc [2024-03-30 12:31: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-03-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-03-30 12:31:33] 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 `created_at` desc [2024-03-30 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:32: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12: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-03-30 12: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 12:34: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-03-30 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 12:34: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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:34: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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:34: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 `created_at` desc [2024-03-30 12:35: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 12:41: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-03-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-03-30 12:41:37] 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 `created_at` desc [2024-03-30 12:41: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-03-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-03-30 12:41:37] 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 `created_at` desc [2024-03-30 12:41: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-03-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-03-30 12:41:37] 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 `created_at` desc [2024-03-30 12:41: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-03-30 12:41:38] 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-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 12:42:12] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:42:12] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:42:12] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-03-30 12:42:12] 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-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 12:43:32] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:43:32] 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 `created_at` desc [2024-03-30 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 12:43:32] 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 `created_at` desc [2024-03-30 12:54: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-03-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-03-30 12:54:13] 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 `created_at` desc [2024-03-30 12:54: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-03-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-03-30 12:54:13] 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 `created_at` desc [2024-03-30 12:54: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-03-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-03-30 12:54:13] 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 `created_at` desc [2024-03-30 12:54: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-03-30 12:54:14] 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-03-30 12: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 13:03: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-03-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-03-30 13:03:23] 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 `created_at` desc [2024-03-30 13:03: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-03-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-03-30 13:03:23] 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 `created_at` desc [2024-03-30 13:03: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-03-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-03-30 13:03:23] 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 `created_at` desc [2024-03-30 13:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-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-03-30 13:03:32] 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 `created_at` desc [2024-03-30 13:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-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-03-30 13:03:32] 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 `created_at` desc [2024-03-30 13:06: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-03-30 13:06: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-03-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-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 13:07: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-02' and `tasks`.`due_by` > '2024-03-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 13:07: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-03-30 13:07: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-03-30 13:07: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-03-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-03-30 13:07:10] 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 `created_at` desc [2024-03-30 13:07: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-03-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-03-30 13:07:10] 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 `created_at` desc [2024-03-30 13:07: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-03-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-03-30 13:07:10] 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 `created_at` desc [2024-03-30 13:07: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-03-30 13:07:14] 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-03-30 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 13:07:16] 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 `created_at` desc [2024-03-30 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 13:07:16] 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 `created_at` desc [2024-03-30 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 13:07:16] 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 `created_at` desc [2024-03-30 13: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 13:10: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-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-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-03-30 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-03-30 13:21: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 13: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-03-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-03-30 13:27:55] 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 `created_at` desc [2024-03-30 13: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-03-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-03-30 13:27:55] 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 `created_at` desc [2024-03-30 13: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-03-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-03-30 13:27:55] 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 `created_at` desc [2024-03-30 13: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-03-30 13: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-03-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-03-30 13:29:41] 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 `created_at` desc [2024-03-30 13: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-03-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-03-30 13:29:41] 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 `created_at` desc [2024-03-30 13: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-03-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-03-30 13:29:41] 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 `created_at` desc [2024-03-30 13:29: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-03-31 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-01 05:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:39:00] 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 `created_at` desc [2024-04-01 05:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:39:00] 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 `created_at` desc [2024-04-01 05:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:39:00] 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 `created_at` desc [2024-04-01 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:42:09] 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 `created_at` desc [2024-04-01 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:42:09] 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 `created_at` desc [2024-04-01 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:42:09] 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 `created_at` desc [2024-04-01 05: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:43:12] 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 `created_at` desc [2024-04-01 05: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:43:12] 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 `created_at` desc [2024-04-01 05: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:43:12] 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 `created_at` desc [2024-04-01 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 05:44:11] 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-01 05:44: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-01 05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:45:06] 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 `created_at` desc [2024-04-01 05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:45:06] 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 `created_at` desc [2024-04-01 05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:45:06] 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 `created_at` desc [2024-04-01 05:45: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 05:45: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-01 05:45: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-01 05:45: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 05:45: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-01 05:45:52] 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-01 05: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 05: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 05:57: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:57:31] 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 `created_at` desc [2024-04-01 05:57: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:57:31] 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 `created_at` desc [2024-04-01 05:57: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:57:31] 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 `created_at` desc [2024-04-01 05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:57:44] 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 `created_at` desc [2024-04-01 05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:57:44] 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 `created_at` desc [2024-04-01 05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:57:44] 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 `created_at` desc [2024-04-01 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:58:35] 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 `created_at` desc [2024-04-01 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:58:35] 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 `created_at` desc [2024-04-01 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:58:35] 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 `created_at` desc [2024-04-01 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:59:07] 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 `created_at` desc [2024-04-01 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:59:07] 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 `created_at` desc [2024-04-01 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 05:59:07] 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 `created_at` desc [2024-04-01 06:00: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:00: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-01 06:00: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-01 06:00: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-01 06:01: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:01:33] 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 `created_at` desc [2024-04-01 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:01:34] 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 `created_at` desc [2024-04-01 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:01:34] 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 `created_at` desc [2024-04-01 06: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-01 06:01: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:02:10] 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 `created_at` desc [2024-04-01 06:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:02:10] 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 `created_at` desc [2024-04-01 06:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:02:10] 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 `created_at` desc [2024-04-01 06:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:02:10] 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 `created_at` desc [2024-04-01 06:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:02:10] 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 `created_at` desc [2024-04-01 06:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:02:10] 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 `created_at` desc [2024-04-01 06:02: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:02: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-01 06:02: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-01 06:03:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:03:06] 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 `created_at` desc [2024-04-01 06:03:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:03:06] 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 `created_at` desc [2024-04-01 06:05: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:07:44] 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 `created_at` desc [2024-04-01 06:07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:07:44] 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 `created_at` desc [2024-04-01 06:07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:07:44] 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 `created_at` desc [2024-04-01 06:08: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:08: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-01 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:40] 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 `created_at` desc [2024-04-01 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:40] 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 `created_at` desc [2024-04-01 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:40] 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 `created_at` desc [2024-04-01 06:15: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:15: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-01 06:15: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-01 06:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:50] 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 `created_at` desc [2024-04-01 06:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:50] 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 `created_at` desc [2024-04-01 06:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:50] 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 `created_at` desc [2024-04-01 06: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 06:15:53] 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 `created_at` desc [2024-04-01 06:15: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 06:15:54] 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 `created_at` desc [2024-04-01 06:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:58] 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 `created_at` desc [2024-04-01 06:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:58] 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 `created_at` desc [2024-04-01 06:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:15:58] 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 `created_at` desc [2024-04-01 06:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:16:29] 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 `created_at` desc [2024-04-01 06:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:16:29] 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 `created_at` desc [2024-04-01 06:16: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 06:16: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 06:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:16:48] 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 `created_at` desc [2024-04-01 06:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:16:48] 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 `created_at` desc [2024-04-01 06:16:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:16:49] 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 `created_at` desc [2024-04-01 06:16:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 06:16:49] 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 `created_at` desc [2024-04-01 06:16: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 06:16: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-01' 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-01 06:16:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:16:58] 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 `created_at` desc [2024-04-01 06:16:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:16:58] 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 `created_at` desc [2024-04-01 06:17:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:17:10] 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 `created_at` desc [2024-04-01 06:17:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:17:10] 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 `created_at` desc [2024-04-01 06:17:12] 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 `created_at` asc [2024-04-01 06:18:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:18:25] 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 `created_at` desc [2024-04-01 06:18:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:18:25] 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 `created_at` desc [2024-04-01 06:19: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:19:28] 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 `created_at` desc [2024-04-01 06:19: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:19:28] 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 `created_at` desc [2024-04-01 06:19: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:19:28] 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 `created_at` desc [2024-04-01 06: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06: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":"harshil.test@gmal.com","name":"Harshil"}}],"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 Harshil,<\\/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;\\">95272<\\/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-01 06:19:47] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d679c1f0-efef-11ee-b186-525400f92481.18e98505b8f","object":"email"} [2024-04-01 06: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:20: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-01 06:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:21:22] 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 `created_at` desc [2024-04-01 06:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:21:22] 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 `created_at` desc [2024-04-01 06:21: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06:21:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 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`.`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-01 06:22:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:22:25] 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 `created_at` desc [2024-04-01 06:22:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 06:22:25] 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 `created_at` desc [2024-04-01 06:22:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:22:29] 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 `created_at` desc [2024-04-01 06:22:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:22:29] 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 `created_at` desc [2024-04-01 06:22:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 06:22:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 06:23:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:23:08] 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 `created_at` desc [2024-04-01 06:23:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:23:08] 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 `created_at` desc [2024-04-01 06:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:23:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:23:57] 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-01 06:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:24:06] 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-01 06:24:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:24:15] 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 `created_at` desc [2024-04-01 06:24:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:24:15] 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 `created_at` desc [2024-04-01 06:24:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:24:18] 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-01 06:24:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 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`.`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-01 06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:25:26] 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 `created_at` desc [2024-04-01 06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:25:26] 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 `created_at` desc [2024-04-01 06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:25:26] 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 `created_at` desc [2024-04-01 06:26: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-01 06:26: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-01 06:27: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-01 06:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:28:07] 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-01 06:28:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:28:14] 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 `created_at` desc [2024-04-01 06:28:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:28:14] 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 `created_at` desc [2024-04-01 06:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:29:30] 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-01 06:30:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:30:41] 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 `created_at` desc [2024-04-01 06:30:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:30:41] 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 `created_at` desc [2024-04-01 06:30:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:30:44] 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-01 06:30:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:30:46] 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 `created_at` desc [2024-04-01 06:30:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:30:46] 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 `created_at` desc [2024-04-01 06:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:30:48] 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-01 06:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:30:57] 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 `created_at` desc [2024-04-01 06:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:30:57] 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 `created_at` desc [2024-04-01 06:31:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:31:01] 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-01 06:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:31:03] 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 `created_at` desc [2024-04-01 06:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:31:03] 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 `created_at` desc [2024-04-01 06:40:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:40:29] 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-01 06:43: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:43:25] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:43:25] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:43:25] 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 `created_at` desc [2024-04-01 06: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-01 06:44:50] local.DEBUG: Product Image Details: Array ( [product_id] => 186 [image_name] => 2922054241711953890.png ) [2024-04-01 06:44:50] 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-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:44:50] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:44:50] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:44:50] 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 `created_at` desc [2024-04-01 06:45:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:45:19] 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 `created_at` desc [2024-04-01 06:45:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:45:19] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:45:42] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:45:42] 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 `created_at` desc [2024-04-01 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:45:42] 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 `created_at` desc [2024-04-01 06:49: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-01 06:49:33] local.DEBUG: Product Image Details: Array ( [product_id] => 187 [image_name] => 20946375711711954173.png ) [2024-04-01 06:49:33] 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-01 06:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:49:33] 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 `created_at` desc [2024-04-01 06:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:49:33] 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 `created_at` desc [2024-04-01 06:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:49:33] 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 `created_at` desc [2024-04-01 06:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:49:53] 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 `created_at` desc [2024-04-01 06:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:49:53] 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 `created_at` desc [2024-04-01 06:51:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 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`.`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-01 06:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 06:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 06:51:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 06:51:56] 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-01 06:52:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:52:01] 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 `created_at` desc [2024-04-01 06:52:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 06:52:01] 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 `created_at` desc [2024-04-01 06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:53:53] 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 `created_at` desc [2024-04-01 06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:53:53] 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 `created_at` desc [2024-04-01 06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 06:53:53] 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 `created_at` desc [2024-04-01 06:54: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 06: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 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-01 07: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07: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-01' 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-01 07:05:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:05:56] 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 `created_at` desc [2024-04-01 07:05:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:05:56] 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 `created_at` desc [2024-04-01 07:05:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:05:59] 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-01 07:06:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:06:00] 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 `created_at` desc [2024-04-01 07:06:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:06:00] 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 `created_at` desc [2024-04-01 07:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 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`.`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-01 07: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-01 07:07: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07:08:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 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`.`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-01 07:09:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:09:03] 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-01 07:09:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:09:08] 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 `created_at` desc [2024-04-01 07:09:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:09:08] 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 `created_at` desc [2024-04-01 07:09:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:09:12] 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-01 07:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:09:15] 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 `created_at` desc [2024-04-01 07:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:09:15] 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 `created_at` desc [2024-04-01 07:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:09:18] 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-01 07:09:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:09:20] 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 `created_at` desc [2024-04-01 07:09:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:09:20] 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 `created_at` desc [2024-04-01 07:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:09:23] 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-01 07:10: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-01 07: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:11:18] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:11:18] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:11:18] 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 `created_at` desc [2024-04-01 07: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-01 07:11: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:17:58] 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 `created_at` desc [2024-04-01 07:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:17:58] 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 `created_at` desc [2024-04-01 07:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:18:01] 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-01 07:18:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:18:07] 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 `created_at` desc [2024-04-01 07:18:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:18:07] 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 `created_at` desc [2024-04-01 07:18:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 07:18:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 07:18:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:18:17] 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-01 07:19:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:19:26] 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 `created_at` desc [2024-04-01 07:19:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:19:26] 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 `created_at` desc [2024-04-01 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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 07:20: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-01 07: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07:22: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07:22: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07:22: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-01' 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-01 07:23: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-01 07:23:00] local.DEBUG: task visible_to: [2024-04-01 07:23:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:23:15] 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 `created_at` desc [2024-04-01 07:23:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:23:16] 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 `created_at` desc [2024-04-01 07:23:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:23:19] 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-01 07:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:23:21] 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 `created_at` desc [2024-04-01 07:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:23:21] 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 `created_at` desc [2024-04-01 07:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:23:21] 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 `created_at` desc [2024-04-01 07:23:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:23:21] 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 `created_at` desc [2024-04-01 07:23:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:23:21] 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 `created_at` desc [2024-04-01 07:23:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:23:24] 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-01 07:23:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:23:26] 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 `created_at` desc [2024-04-01 07:23:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:23:26] 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 `created_at` desc [2024-04-01 07:24:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:24:08] 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 `created_at` desc [2024-04-01 07:24:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:24:08] 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 `created_at` desc [2024-04-01 07:24: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-01 07:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:25:18] 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-01 07:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:25] 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 `created_at` desc [2024-04-01 07:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:25:25] 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 `created_at` desc [2024-04-01 07:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07:25: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-01' 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-01 07:25:30] 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 `created_at` asc [2024-04-01 07:25:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:30] 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 `created_at` desc [2024-04-01 07:25:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:25:30] 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 `created_at` desc [2024-04-01 07:25:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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-01 07:25:33] 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-01 07:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:36] 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 `created_at` desc [2024-04-01 07:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:25:36] 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 `created_at` desc [2024-04-01 07:25:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:38] 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 `created_at` desc [2024-04-01 07:25:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:25:38] 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 `created_at` desc [2024-04-01 07:25:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:40] 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 `created_at` desc [2024-04-01 07:25:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:25:40] 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 `created_at` desc [2024-04-01 07:25:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:42] 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 `created_at` desc [2024-04-01 07:25:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:25:42] 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 `created_at` desc [2024-04-01 07:25:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:43] 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 `created_at` desc [2024-04-01 07:25:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:25:43] 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 `created_at` desc [2024-04-01 07:25:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:25:45] 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 `created_at` desc [2024-04-01 07:25:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:25:45] 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 `created_at` desc [2024-04-01 07:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07:25: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-01' 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-01 07:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07:25: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-01' 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-01 07:25: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-01 07:25:51] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-01 07:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07:25: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-01' 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-01 07:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:26:19] 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 `created_at` desc [2024-04-01 07:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:26:19] 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 `created_at` desc [2024-04-01 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 07:26:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:26:27] 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 `created_at` desc [2024-04-01 07:26:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 07:26:27] 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 `created_at` desc [2024-04-01 07:29: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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 07:29: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-01' 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-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 07:29: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:29:43] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:29:43] 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 `created_at` desc [2024-04-01 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:29:45] 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 `created_at` desc [2024-04-01 07:29: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:29: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 `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 07:30:08] 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-01 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:30:59] 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 `created_at` desc [2024-04-01 07: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:31:05] 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 `created_at` desc [2024-04-01 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:31:16] 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 `created_at` desc [2024-04-01 07:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:31:27] 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 `created_at` desc [2024-04-01 07:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:31:58] 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 `created_at` desc [2024-04-01 07:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:31:58] 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 `created_at` desc [2024-04-01 07:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:31:58] 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 `created_at` desc [2024-04-01 07:32: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:32:05] 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 `created_at` desc [2024-04-01 07:32: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:32:06] 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 `created_at` desc [2024-04-01 07:32: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:32:35] 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 `created_at` desc [2024-04-01 07:32: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:32:35] 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 `created_at` desc [2024-04-01 07:32: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:32:35] 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 `created_at` desc [2024-04-01 07:32: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07:32: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-01 07:32: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-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:20] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:20] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:20] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:28] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:28] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:28] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:42] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:42] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:33:42] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:34:16] 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 `created_at` desc [2024-04-01 07:34: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:34:17] 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 `created_at` desc [2024-04-01 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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 07:34: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:34:23] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:34:27] 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 `created_at` desc [2024-04-01 07:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:35:16] 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 `created_at` desc [2024-04-01 07:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:35:16] 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 `created_at` desc [2024-04-01 07:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:35:16] 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 `created_at` desc [2024-04-01 07:35: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:35:30] 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 `created_at` desc [2024-04-01 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:35:31] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:35:36] 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 `created_at` desc [2024-04-01 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:35:37] 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 `created_at` desc [2024-04-01 07:35: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:35:38] 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 `created_at` desc [2024-04-01 07:35: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 07:35:40] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:35:48] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:35:48] 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 `created_at` desc [2024-04-01 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:35:48] 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 `created_at` desc [2024-04-01 07:36: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-01 07:36: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:38:07] 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 `created_at` desc [2024-04-01 07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:38:07] 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 `created_at` desc [2024-04-01 07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 07:38:07] 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 `created_at` desc [2024-04-01 07:39: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 07: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:33:18] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:33:18] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:33:18] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:36:10] 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 `created_at` desc [2024-04-01 08: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:36:10] 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 `created_at` desc [2024-04-01 08: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:36:10] 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 `created_at` desc [2024-04-01 08:36: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:42:38] 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 `created_at` desc [2024-04-01 08:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:42:38] 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 `created_at` desc [2024-04-01 08:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:42:38] 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 `created_at` desc [2024-04-01 08:42:38] 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 `created_at` desc [2024-04-01 08:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:42:38] 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 `created_at` desc [2024-04-01 08:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:42:38] 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 `created_at` desc [2024-04-01 08: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-01 08:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:44:51] 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 `created_at` desc [2024-04-01 08:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:44:51] 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 `created_at` desc [2024-04-01 08:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:44:51] 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 `created_at` desc [2024-04-01 08: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:45: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:47: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:47:51] 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 `created_at` desc [2024-04-01 08:47: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:47:51] 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 `created_at` desc [2024-04-01 08:47: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:47:51] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:48: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-01 08:48:32] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:48: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-01 08:50: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:51:31] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:51:31] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:51:31] 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 `created_at` desc [2024-04-01 08: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-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:52: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:52:49] 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 `created_at` desc [2024-04-01 08:52: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:52:49] 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 `created_at` desc [2024-04-01 08:52: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:52:49] 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 `created_at` desc [2024-04-01 08: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:53:50] 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 `created_at` desc [2024-04-01 08:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:53:50] 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 `created_at` desc [2024-04-01 08:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:53:50] 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 `created_at` desc [2024-04-01 08:53:51] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:53: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08:54: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-01 08:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:54:20] 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 `created_at` desc [2024-04-01 08:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:54:20] 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 `created_at` desc [2024-04-01 08:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:54:20] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:54:25] 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 `created_at` desc [2024-04-01 08:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:54:26] 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 `created_at` desc [2024-04-01 08:54: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:54:28] 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 `created_at` desc [2024-04-01 08: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:54:29] 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 `created_at` desc [2024-04-01 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:54:30] 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 `created_at` desc [2024-04-01 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:54:31] 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 `created_at` desc [2024-04-01 08:58: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:58:19] 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 `created_at` desc [2024-04-01 08:58: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:58:29] 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 `created_at` desc [2024-04-01 08:58: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:58:29] 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 `created_at` desc [2024-04-01 08:58: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:58:29] 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 `created_at` desc [2024-04-01 08:58: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:58:31] 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 `created_at` desc [2024-04-01 08:58: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:58:32] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 08:58:45] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:59:17] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:59:17] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:59:17] 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 `created_at` desc [2024-04-01 08:59: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:59:30] 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 `created_at` desc [2024-04-01 08:59: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:59:30] 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 `created_at` desc [2024-04-01 08:59: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 08:59:30] 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 `created_at` desc [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:02:39] 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 `created_at` desc [2024-04-01 09:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:02:39] 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 `created_at` desc [2024-04-01 09:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:02:39] 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 `created_at` desc [2024-04-01 09: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 09:02:42] 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 `created_at` desc [2024-04-01 09:02: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 09:02:43] 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 `created_at` desc [2024-04-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 09:02:44] 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 `created_at` desc [2024-04-01 09:02: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 09:02:50] 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 `created_at` desc [2024-04-01 09:02: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 09:02:52] 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 `created_at` desc [2024-04-01 09: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`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 09:02:53] 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 `created_at` desc [2024-04-01 09:03: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-01 09:03:05] 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-01 09:03: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 09:03:09] 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-01 09:03: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-01 09:03:12] 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-01 09:03: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 09:03:15] 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-01 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 09:03:17] 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-01 09:03: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-01 09:03:19] 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-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-01 09:03:22] 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-01 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 09:03:25] 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-01 09:06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:06:22] 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 `created_at` desc [2024-04-01 09:06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:06:22] 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 `created_at` desc [2024-04-01 09:06: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:06:22] 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 `created_at` desc [2024-04-01 09:06: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09:06: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-01 09:06: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-01 09: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09:11: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-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:17:08] 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 `created_at` desc [2024-04-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:17:08] 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 `created_at` desc [2024-04-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:17:08] 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 `created_at` desc [2024-04-01 09:18: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-01 09:18: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09:26: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-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:40:36] 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 `created_at` desc [2024-04-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:40:36] 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 `created_at` desc [2024-04-01 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:40:36] 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 `created_at` desc [2024-04-01 09: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:46:39] 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 `created_at` desc [2024-04-01 09: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:46:39] 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 `created_at` desc [2024-04-01 09: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:46:39] 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 `created_at` desc [2024-04-01 09:46: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-01 09:47: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 09:47: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-01 09:47: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-01 09:47: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:47:59] 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 `created_at` desc [2024-04-01 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:48:00] 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 `created_at` desc [2024-04-01 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:48:00] 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 `created_at` desc [2024-04-01 09:48: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:48:06] 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 `created_at` desc [2024-04-01 09:48: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:48:06] 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 `created_at` desc [2024-04-01 09:48: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:48:06] 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 `created_at` desc [2024-04-01 09:48: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-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:02] 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 `created_at` desc [2024-04-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:02] 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 `created_at` desc [2024-04-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:02] 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 `created_at` desc [2024-04-01 09:49: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-01 09:49:10] 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-01 09: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:24] 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 `created_at` desc [2024-04-01 09: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:24] 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 `created_at` desc [2024-04-01 09: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:24] 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 `created_at` desc [2024-04-01 09:49: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-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:33] 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 `created_at` desc [2024-04-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:33] 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 `created_at` desc [2024-04-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:33] 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 `created_at` desc [2024-04-01 09:49: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-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:35] 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 `created_at` desc [2024-04-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:35] 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 `created_at` desc [2024-04-01 09:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 09:49:35] 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 `created_at` desc [2024-04-01 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:07:34] 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 `created_at` desc [2024-04-01 10:07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:07:34] 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 `created_at` desc [2024-04-01 10:07: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:07:34] 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 `created_at` desc [2024-04-01 10:08: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-01 10: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:11:50] 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 `created_at` desc [2024-04-01 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:11:50] 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 `created_at` desc [2024-04-01 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:11:50] 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 `created_at` desc [2024-04-01 10:11: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-01 10:12: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-01 10:12:21] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:12: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":"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 test task<\\/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-01 10:12:27] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.57876ca0-f010-11ee-a94c-525400d4bb1c.18e9925606a","object":"email"} [2024-04-01 10:12: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-01 10:13:23] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:13: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":"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 test task<\\/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-01 10:13:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.793f7950-f010-11ee-9de0-52540064429e.18e99263d65","object":"email"} [2024-04-01 10:13: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:14: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":"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 test task<\\/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-01 10:14:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.94aea300-f010-11ee-a834-525400fa05f6.18e9926f130","object":"email"} [2024-04-01 10:22: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:22:28] 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 `created_at` desc [2024-04-01 10:22: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:22:28] 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 `created_at` desc [2024-04-01 10:22: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:22:28] 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 `created_at` desc [2024-04-01 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 10:22:49] 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-01 10:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:23:19] 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 `created_at` desc [2024-04-01 10:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:23:19] 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 `created_at` desc [2024-04-01 10:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:23:19] 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 `created_at` desc [2024-04-01 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:23:55] 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 `created_at` desc [2024-04-01 10:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:23:55] 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 `created_at` desc [2024-04-01 10:23: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:23:56] 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 `created_at` desc [2024-04-01 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:24:11] 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 `created_at` desc [2024-04-01 10:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:24:11] 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 `created_at` desc [2024-04-01 10:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:24:11] 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 `created_at` desc [2024-04-01 10:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:24:15] 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 `created_at` desc [2024-04-01 10:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:24:15] 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 `created_at` desc [2024-04-01 10:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:24:15] 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 `created_at` desc [2024-04-01 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 10:24:16] 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-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:26:57] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:26:57] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:26:57] 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 `created_at` desc [2024-04-01 10:27: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-01 10:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:27:14] 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 `created_at` desc [2024-04-01 10:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:27:14] 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 `created_at` desc [2024-04-01 10:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:27:14] 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 `created_at` desc [2024-04-01 10: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-01 10:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:27:42] 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 `created_at` desc [2024-04-01 10:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:27:42] 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 `created_at` desc [2024-04-01 10:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:27:42] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:28:15] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:28:15] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:28:15] 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 `created_at` desc [2024-04-01 10:28:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-01 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10:28: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-01 10:28: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-01 10:28:48] 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-01 10:28:48] 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-01 10:28:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 10:28:51] 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 `created_at` desc [2024-04-01 10:28:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 10:28:51] 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 `created_at` desc [2024-04-01 10:28:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 10:28:51] 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 `updated_at` desc [2024-04-01 10:28:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 10:28:51] 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 `created_at` desc [2024-04-01 10: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:29:11] 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 `created_at` desc [2024-04-01 10: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:29:11] 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 `created_at` desc [2024-04-01 10: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:29:11] 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 `created_at` desc [2024-04-01 10:29: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-01 10:29: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:29:37] 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 `created_at` desc [2024-04-01 10:29: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:29:37] 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 `created_at` desc [2024-04-01 10:29: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:29:37] 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 `created_at` desc [2024-04-01 10:29: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-01 10:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:35:44] 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 `created_at` desc [2024-04-01 10:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:35:44] 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 `created_at` desc [2024-04-01 10:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:35:44] 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 `created_at` desc [2024-04-01 10:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:19] 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 `created_at` desc [2024-04-01 10:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:19] 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 `created_at` desc [2024-04-01 10:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:19] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:27] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:27] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:27] 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 `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:44] 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 `created_at` desc [2024-04-01 10:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:44] 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 `created_at` desc [2024-04-01 10:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:38:44] 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 `created_at` desc [2024-04-01 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` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10:38:49] 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 `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 10:38:58] 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-01 10: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` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10:39:11] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:14] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:14] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:14] 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 `created_at` desc [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:28] 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 `created_at` desc [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:28] 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 `created_at` desc [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:28] 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 `created_at` desc [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:38] 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 `created_at` desc [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:38] 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 `created_at` desc [2024-04-01 10:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:39:38] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:41:24] 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 `created_at` desc [2024-04-01 10: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:41:24] 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 `created_at` desc [2024-04-01 10: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:41:24] 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 `created_at` desc [2024-04-01 10:41: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:39] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:39] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:39] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:55] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:55] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:55] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:55] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:55] 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 `created_at` desc [2024-04-01 10:42: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:42:55] 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 `created_at` desc [2024-04-01 10:43: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:26] 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 `created_at` desc [2024-04-01 10:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:26] 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 `created_at` desc [2024-04-01 10:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:26] 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 `created_at` desc [2024-04-01 10:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:36] 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 `created_at` desc [2024-04-01 10:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:36] 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 `created_at` desc [2024-04-01 10:44: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:36] 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 `created_at` desc [2024-04-01 10: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` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 10: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:41] 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 `created_at` desc [2024-04-01 10: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:41] 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 `created_at` desc [2024-04-01 10: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:44:41] 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 `created_at` desc [2024-04-01 10:44: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-01 10:44:45] 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-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 10: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`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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-01 10: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:44: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:44: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-01 10:44: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-01 10:44: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-01 10:45: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:45: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-01 10:45: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-01 10:47: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:47: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-01 10:47: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-01 10:47: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-01 10:57: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:57:39] 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 `created_at` desc [2024-04-01 10:57: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:57:39] 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 `created_at` desc [2024-04-01 10:57: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:57:39] 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 `created_at` desc [2024-04-01 10:57: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:57: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-01 10:57: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-01 10:57: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-01 10:57:54] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:58:26] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:58:26] 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 `created_at` desc [2024-04-01 10: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:58:26] 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 `created_at` desc [2024-04-01 10: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:58: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-01 10:59: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:59:11] 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 `created_at` desc [2024-04-01 10:59: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:59:11] 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 `created_at` desc [2024-04-01 10:59: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 10:59:11] 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 `created_at` desc [2024-04-01 10: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`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 10:59: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-01 11:02: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 11:02: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-01 11:02: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-01 11:03: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-01 11:03: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 11:03: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-01 11:03: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-01 11:03: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-01 11:03: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-01 11:03: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-01 11:03: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-01 11:04: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:04:11] 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 `created_at` desc [2024-04-01 11:04: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:04:11] 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 `created_at` desc [2024-04-01 11:04: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:04:11] 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 `created_at` desc [2024-04-01 11:04: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:04:38] 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 `created_at` desc [2024-04-01 11:04: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:04:38] 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 `created_at` desc [2024-04-01 11:04: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:04:38] 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 `created_at` desc [2024-04-01 11:05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:05:15] 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 `created_at` desc [2024-04-01 11:05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:05:15] 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 `created_at` desc [2024-04-01 11:05: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:05:15] 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 `created_at` desc [2024-04-01 11: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` = ?)) 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-01 11:10: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 11:10: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-01 11:10: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-01 11:10: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-01 11:10: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 11:10: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-01 11:10: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-01 11: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":"john@gmail.com","name":"john@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 john@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: Prince<\\/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-01 11:12:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b07b8370-f018-11ee-9151-5254000b1a0e.18e995c1527","object":"email"} [2024-04-01 11:13: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":"harshwatson00@gmail.com","name":"harshwatson00@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 harshwatson00@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Prince\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Prince<\\/li>\\n <li>Invited By: Prince<\\/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-01 11:13:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.df4eaa60-f018-11ee-a9f9-525400d6cd4f.18e995d4806","object":"email"} [2024-04-01 11:31:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 11:31:17] 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 `created_at` desc [2024-04-01 11:31:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 11:31:17] 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 `created_at` desc [2024-04-01 12:05:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 12:05:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-01 12:11:40] 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-01 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 12:12:11] 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-01 12: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:12:17] 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 `created_at` desc [2024-04-01 12: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:12:17] 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 `created_at` desc [2024-04-01 12: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:12:17] 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 `created_at` desc [2024-04-01 12: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-01 12:13: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 12:13: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-01 12:13: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-01 12:13: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-01 12:13: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-01 12: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 12: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` = ?) or (`task_settings`.`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-01 12: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 12:14: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-01 12:15: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-01 12:15: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-01 12:15: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-01 12:15: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 12:15: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-01 12:15: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-01 12:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:15:30] 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 `created_at` desc [2024-04-01 12:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:15:30] 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 `created_at` desc [2024-04-01 12:15: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:15:30] 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 `created_at` desc [2024-04-01 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:15:32] 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 `created_at` desc [2024-04-01 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:15:32] 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 `created_at` desc [2024-04-01 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:15:32] 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 `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 12:45: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":"dev.testing108@gmail.com","name":"dev.testing108@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 dev.testing108@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-01 12:45:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.be0949c0-f025-11ee-833a-525400103106.18e99b1a05c","object":"email"} [2024-04-01 12:51:16] 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":"John Ved"}}],"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 Ved,<\\/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;\\">82528<\\/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-01 12:51:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.87676db0-f026-11ee-b186-525400f92481.18e99b6c80b","object":"email"} [2024-04-01 12:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 12:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 12:51: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 12:51: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-01' 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-01 12:51: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 12:51: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-01' 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-01 12:52:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:52:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 12:52:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:52:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 12:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 12:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:56:21] 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 `created_at` desc [2024-04-01 12:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' 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-01 12:56:21] 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 `created_at` desc [2024-04-01 12:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 12:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:01:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:01:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13: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-01' 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-01 13:02:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:02:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:11:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:11:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:16: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-01' 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-01 13:16: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-01 13:16:02] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-01 13:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:16:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:16: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-01' 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-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 13:16: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-01 13:16:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:16:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:16:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:16:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 13:23:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:23:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:24:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:24:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:24:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:24:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:24:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:24: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:24: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-01' 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-01 13:24: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:24: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-01' 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-01 13:24: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:24: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-01' 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-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 13:24:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:24:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 13:25:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 13:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:25: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-01' 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-01 13:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:25: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-01' 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-01 13:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:25: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-01' 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-01 13:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:25: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-01' 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-01 13:25: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:25: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-01' 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-01 13:25:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:25:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:25:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:25: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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:25: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-01' 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-01 13:26:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:26:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:26: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-01' 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-01 13:26: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:26: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-01' 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-01 13:26:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26: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-01 13:26:18] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-01 13:26: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:26: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-01' 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-01 13:26:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:26: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-01' 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-01 13:26:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:26:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:26:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:26:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:26:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:27: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:27: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-01' 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-01 13:27: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 13:27: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-01' 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-01 13:27:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:27:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:27:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:27:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 13:27:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:27:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:28:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:28:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 13:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:38:05] 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 `created_at` desc [2024-04-01 13:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:38:05] 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 `created_at` desc [2024-04-01 13:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:38:05] 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 `created_at` desc [2024-04-01 13:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:38:05] 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 `created_at` desc [2024-04-01 13:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:38:05] 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 `created_at` desc [2024-04-01 13:38: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 13:38:05] 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 `created_at` desc [2024-04-01 14: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:34:01] 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 `created_at` desc [2024-04-01 14: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:34:01] 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 `created_at` desc [2024-04-01 14: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:34:01] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:06] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:06] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:06] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:12] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:12] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:12] 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 `created_at` desc [2024-04-01 14: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:21] 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 `created_at` desc [2024-04-01 14: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:21] 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 `created_at` desc [2024-04-01 14: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:21] 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 `created_at` desc [2024-04-01 14: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:31] 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 `created_at` desc [2024-04-01 14: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:31] 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 `created_at` desc [2024-04-01 14: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:31] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:43] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:43] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:43] 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 `created_at` desc [2024-04-01 14: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:49] 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 `created_at` desc [2024-04-01 14: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:49] 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 `created_at` desc [2024-04-01 14: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:49] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:54] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:54] 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 `created_at` desc [2024-04-01 14:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:35:54] 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 `created_at` desc [2024-04-01 14: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:36:39] 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 `created_at` desc [2024-04-01 14: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:36:39] 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 `created_at` desc [2024-04-01 14: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:36:39] 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 `created_at` desc [2024-04-01 14: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:36:53] 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 `created_at` desc [2024-04-01 14: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:36:53] 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 `created_at` desc [2024-04-01 14: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:36:53] 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 `created_at` desc [2024-04-01 14:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:37:13] 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 `created_at` desc [2024-04-01 14:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:37:13] 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 `created_at` desc [2024-04-01 14:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:37:13] 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 `created_at` desc [2024-04-01 14:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:37:33] 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 `created_at` desc [2024-04-01 14:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:37:33] 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 `created_at` desc [2024-04-01 14:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 14:37:33] 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 `created_at` desc [2024-04-01 14: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14: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` = ?)) 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-01 14: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14:38: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-01 14: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` = ?)) 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-01 14:38: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14:38: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-01 14:38: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-01 14:38: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-01 14:38: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-01 14: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14:38: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`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14:38: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`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14:38: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 14:38: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-01 14:38: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 `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-01 14:39: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-01 14:39: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 `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-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:22] 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 `created_at` desc [2024-04-01 16:11:22] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:22] 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 `created_at` desc [2024-04-01 16:11:22] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:22] 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 `created_at` desc [2024-04-01 16:11:22] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:27] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 16:11:27] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:31] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:31] 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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:31] 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 `created_at` desc [2024-04-01 16:11: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16:11: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-01 16:11: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-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11: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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11: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 `created_at` desc [2024-04-01 16:11: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11: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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:50] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:50] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:11:50] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:19] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:19] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:19] 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 `created_at` desc [2024-04-01 16:12: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:35] 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 `created_at` desc [2024-04-01 16:12: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:35] 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 `created_at` desc [2024-04-01 16:12: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:35] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:56] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:56] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:12:56] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:13:15] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:13:15] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:13:15] 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 `created_at` desc [2024-04-01 16:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:13:48] 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 `created_at` desc [2024-04-01 16:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:13:48] 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 `created_at` desc [2024-04-01 16:14: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16:14: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-01 16:14: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-01 16:14: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:06] 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 `created_at` desc [2024-04-01 16:14: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:06] 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 `created_at` desc [2024-04-01 16:14: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:06] 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 `created_at` desc [2024-04-01 16:14:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16: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` = ?)) 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-01 16:14:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 16: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-01' 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-01 16:14: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 16:14: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-01' 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-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:20] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:20] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:14:20] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:17:52] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:17:52] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:17:52] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:18:21] 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 `created_at` desc [2024-04-01 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:18:21] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:18:21] 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 `created_at` desc [2024-04-01 16:18: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16:18: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-01 16:18: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-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:21:15] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:21:15] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:21:15] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:23:10] 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 `created_at` desc [2024-04-01 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:23:10] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:23:10] 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 `created_at` desc [2024-04-01 16:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:24:25] 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 `created_at` desc [2024-04-01 16:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:24:25] 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 `created_at` desc [2024-04-01 16:24: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:24:25] 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 `created_at` desc [2024-04-01 16:26: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":"brent@coinsforcollege.org","name":"Parent Severns"}}],"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 Parent Severns,<\\/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;\\">63008<\\/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-01 16:26:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8b1a40e0-f044-11ee-9151-5254000b1a0e.18e9a7b7bee","object":"email"} [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:11] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:11] 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 `created_at` desc [2024-04-01 16: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:11] 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 `created_at` desc [2024-04-01 16:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:36] 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 `created_at` desc [2024-04-01 16:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:36] 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 `created_at` desc [2024-04-01 16:27: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:36] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:55] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:55] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:27:55] 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 `created_at` desc [2024-04-01 16:29: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:29:50] 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 `created_at` desc [2024-04-01 16:29: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:29:50] 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 `created_at` desc [2024-04-01 16:29: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:29:50] 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 `created_at` desc [2024-04-01 16: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` = ?)) 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-01 16:30: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:30:16] 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 `created_at` desc [2024-04-01 16:30: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:30:16] 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 `created_at` desc [2024-04-01 16:30: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:30:16] 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 `created_at` desc [2024-04-01 16: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:30:49] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:30:49] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:30:49] 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 `created_at` desc [2024-04-01 16: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-01 16:31: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":"merebass1@gmail.com","name":"Student Severns"}}],"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 Student Severns,<\\/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;\\">63406<\\/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-01 16:31:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.39fd5f20-f045-11ee-a9f9-525400d6cd4f.18e9a7ff612","object":"email"} [2024-04-01 16:31:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:31:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:31:48] 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 `created_at` desc [2024-04-01 16:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:31:48] 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 `created_at` desc [2024-04-01 16:31: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:31:48] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:02] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:02] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:02] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:02] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:02] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:02] 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 `created_at` desc [2024-04-01 16:32: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-01 16:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:15] 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 `created_at` desc [2024-04-01 16:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:32:15] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:24] 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 `created_at` desc [2024-04-01 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:24] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:24] 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 `created_at` desc [2024-04-01 16:32: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:26] 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 `created_at` desc [2024-04-01 16:32: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:26] 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 `created_at` desc [2024-04-01 16:32: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:26] 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 `created_at` desc [2024-04-01 16:32: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-01 16: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:34] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:34] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:34] 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 `created_at` desc [2024-04-01 16:32: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-01 16:32:43] local.DEBUG: Product Image Details: Array ( [product_id] => 188 [image_name] => 11172283241711989163.png ) [2024-04-01 16:32:43] 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-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:44] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:44] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:32:44] 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 `created_at` desc [2024-04-01 16: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-01 16:32:55] 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-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:07] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:07] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:07] 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 `created_at` desc [2024-04-01 16: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 16:33:36] 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-01 16:33:41] local.DEBUG: Product Image Details: Array ( [product_id] => 189 [image_name] => 6888524021711989221.png ) [2024-04-01 16:33:41] 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-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:41] 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 `created_at` desc [2024-04-01 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:41] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:42] 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 `created_at` desc [2024-04-01 16:33: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:45] 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 `created_at` desc [2024-04-01 16:33: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:45] 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 `created_at` desc [2024-04-01 16:33: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:45] 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 `created_at` desc [2024-04-01 16:33: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-01 16:33:52] 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-01 16:33:53] local.DEBUG: Product Image Details: Array ( [product_id] => 190 [image_name] => 11096416131711989233.png ) [2024-04-01 16:33:53] 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-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:53] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:53] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:53] 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 `created_at` desc [2024-04-01 16:33: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-01 16:33:54] 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-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:56] 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 `created_at` desc [2024-04-01 16: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:56] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:33:56] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:34:03] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:34:03] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:34:03] 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 `created_at` desc [2024-04-01 16:34: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:34:25] 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 `created_at` desc [2024-04-01 16:34: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:34:25] 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 `created_at` desc [2024-04-01 16:34: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:34:25] 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 `created_at` desc [2024-04-01 16:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:35:40] 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 `created_at` desc [2024-04-01 16:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:35:40] 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 `created_at` desc [2024-04-01 16:35: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:35:40] 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 `created_at` desc [2024-04-01 16:36: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":"merebass1@gmail.com","name":"merebass1@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 merebass1@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: Parent Severns<\\/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-01 16:36:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f01d0f30-f045-11ee-9151-5254000b1a0e.18e9a849fa3","object":"email"} [2024-04-01 16:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:37:30] 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 `created_at` desc [2024-04-01 16:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:37:30] 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 `created_at` desc [2024-04-01 16:37: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:37:30] 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 `created_at` desc [2024-04-01 16:38:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:38:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:39:00] 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 `created_at` desc [2024-04-01 16:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:39:00] 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 `created_at` desc [2024-04-01 16:39: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:39:00] 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 `created_at` desc [2024-04-01 16:39:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:39:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:41:13] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:41:13] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:41:13] 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 `created_at` desc [2024-04-01 16:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:42: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":"work.amankumar@gmail.com","name":"work.amankumar@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 work.amankumar@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: Aman Kumar<\\/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-01 16:42:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cb8d8310-f046-11ee-9de0-52540064429e.18e9a8a3dc1","object":"email"} [2024-04-01 16:43: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":"work.amankumar@gmail.com","name":"Aman 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 Aman 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;\\">28353<\\/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-01 16:43:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e9bf4f30-f046-11ee-b186-525400f92481.18e9a8b03a3","object":"email"} [2024-04-01 16:43:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:43:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:43: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 16:43: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-01' 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-01 16:43:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:43:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:44:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:44:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:44: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' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 16:44: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-01' 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-01 16:45:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:45:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-01 16:45:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:45:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:47:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:47:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:47: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-01 16:47: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-01' 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-01 16:47:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:47:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:49:01] 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 `created_at` desc [2024-04-01 16:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:49:01] 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 `created_at` desc [2024-04-01 16:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:49:01] 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 `created_at` desc [2024-04-01 16:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:49:06] 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 `created_at` desc [2024-04-01 16:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:49:06] 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 `created_at` desc [2024-04-01 16:49: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:49:06] 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 `created_at` desc [2024-04-01 16:52: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":"amanchild@gmail.com","name":"amanchild@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 amanchild@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: Aman Kumar<\\/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-01 16:52:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2e8f7850-f048-11ee-9151-5254000b1a0e.18e9a935455","object":"email"} [2024-04-01 16:52:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:52:28] 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 `created_at` desc [2024-04-01 16:52:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:52:28] 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 `created_at` desc [2024-04-01 16:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:52:49] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:52:58] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:52:58] 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 `created_at` desc [2024-04-01 16: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:52:58] 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 `created_at` desc [2024-04-01 16:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:53:17] 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 `created_at` desc [2024-04-01 16:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:53:17] 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 `created_at` desc [2024-04-01 16:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:53:17] 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 `created_at` desc [2024-04-01 16:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:53:17] 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 `created_at` desc [2024-04-01 16:53:17] 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 `created_at` desc [2024-04-01 16:53: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:53:17] 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 `created_at` desc [2024-04-01 16:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:54:24] 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 `created_at` desc [2024-04-01 16:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:54:24] 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 `created_at` desc [2024-04-01 16:54: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:54:24] 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 `created_at` desc [2024-04-01 16: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-01 16:55:27] 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-01 16: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` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:55:33] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:55:33] 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 `created_at` desc [2024-04-01 16: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` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:55:33] 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 `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-01 16:55: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:55:59] 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 `created_at` desc [2024-04-01 16:55: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:55:59] 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 `created_at` desc [2024-04-01 16:55: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:55:59] 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 `created_at` desc [2024-04-01 16: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`.`due_by` <= '2024-04-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16: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`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:10] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:10] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:10] 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 `created_at` desc [2024-04-01 16:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:56:15] 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 `created_at` desc [2024-04-01 16:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:56: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:40] 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 `created_at` desc [2024-04-01 16:56: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:40] 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 `created_at` desc [2024-04-01 16:56: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:56:40] 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 `created_at` desc [2024-04-01 16:59:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:59:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 16:59:40] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:59:53] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:59:53] 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 `created_at` desc [2024-04-01 16: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 16:59:53] 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 `created_at` desc [2024-04-01 17:00: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:16] 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 `created_at` desc [2024-04-01 17:00: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:16] 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 `created_at` desc [2024-04-01 17:00: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:16] 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 `created_at` desc [2024-04-01 17:00: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-04' and `tasks`.`due_by` > '2024-04-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-01 17:00: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-01 17:00: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-01 17: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:28] 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 `created_at` desc [2024-04-01 17: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:28] 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 `created_at` desc [2024-04-01 17: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-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:28] 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 `created_at` desc [2024-04-01 17:00:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00:37] 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 `created_at` desc [2024-04-01 17:00:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 17:00:37] 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 `created_at` desc [2024-04-01 17:00:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:00: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 `created_at` desc [2024-04-01 17:00:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 17:00: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 `created_at` desc [2024-04-01 17:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-01 17:04:39] 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 `created_at` desc [2024-04-01 17:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-03-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-01 17:04:39] 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 `created_at` desc [2024-04-02 00:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:32:32] 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 `created_at` desc [2024-04-02 00:32:32] 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 `created_at` desc [2024-04-02 00:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:32:32] 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 `created_at` desc [2024-04-02 00:32:32] 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 `created_at` desc [2024-04-02 00:32:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:32:37] 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 `created_at` desc [2024-04-02 00:32:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:32:37] 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 `created_at` desc [2024-04-02 00: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 00: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-02' 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-02 00:33:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:04] 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 `created_at` desc [2024-04-02 00:33:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:33:04] 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 `created_at` desc [2024-04-02 00:33:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:12] 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 `created_at` desc [2024-04-02 00:33:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 00:33:12] 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 `created_at` desc [2024-04-02 00:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:14] 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 `created_at` desc [2024-04-02 00:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:33:14] 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 `created_at` desc [2024-04-02 00:33: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:35] 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 `created_at` desc [2024-04-02 00:33: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:35] 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 `created_at` desc [2024-04-02 00:33: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:35] 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 `created_at` desc [2024-04-02 00:33:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:33:55] 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 `created_at` desc [2024-04-02 00:33:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:33:55] 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 `created_at` desc [2024-04-02 00: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:34:13] 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 `created_at` desc [2024-04-02 00: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:34:13] 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 `created_at` desc [2024-04-02 00: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:34:13] 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 `created_at` desc [2024-04-02 00:35:16] 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":"amanchild@gmail.com","name":"amanchild@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 amanchild@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/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-02 00:35:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e05a0b00-f088-11ee-b186-525400f92481.18e9c3b4fb0","object":"email"} [2024-04-02 00:36: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":"work.amankumar@gmail.com","name":"work.amankumar@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 work.amankumar@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/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-02 00:36:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0f5ec940-f089-11ee-a94c-525400d4bb1c.18e9c3c83d4","object":"email"} [2024-04-02 00:36:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:36:46] 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 `created_at` desc [2024-04-02 00:36:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:36:46] 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 `created_at` desc [2024-04-02 00: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 00: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 00:36:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:36:53] 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 `created_at` desc [2024-04-02 00:36:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:36:53] 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 `created_at` desc [2024-04-02 00:37:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:37:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 00:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 00:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 03:47:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 03:47:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 04:35: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":"mrdre2u@ca.rr.com","name":"Andre D. 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 Andre D. 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;\\">90890<\\/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-02 04:35:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7f767400-f0aa-11ee-a9f9-525400d6cd4f.18e9d17a740","object":"email"} [2024-04-02 04:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:37:03] 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 `created_at` desc [2024-04-02 04:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:37:03] 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 `created_at` desc [2024-04-02 04:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:37:03] 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 `created_at` desc [2024-04-02 04:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:37:09] 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 `created_at` desc [2024-04-02 04:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:37:09] 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 `created_at` desc [2024-04-02 04:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:37:09] 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 `created_at` desc [2024-04-02 04:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:39:34] 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 `created_at` desc [2024-04-02 04:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:39:34] 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 `created_at` desc [2024-04-02 04:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:39:34] 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 `created_at` desc [2024-04-02 04:49: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 04: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:49:23] 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 `created_at` desc [2024-04-02 04: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:49:23] 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 `created_at` desc [2024-04-02 04: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:49:23] 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 `created_at` desc [2024-04-02 04: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 (?, ?, ?) 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 04:51:00] 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 `created_at` desc [2024-04-02 04: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`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 04:51:01] 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 `created_at` desc [2024-04-02 04:52: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:52:34] 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 `created_at` desc [2024-04-02 04:52: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:52:34] 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 `created_at` desc [2024-04-02 04:52: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 04:52:34] 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 `created_at` desc [2024-04-02 04:53: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-02 04:53:06] 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-02 04:55:05] 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-02 04:55:05] 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-02 04:55:09] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 ) [accept-encoding] => Array ( [0] => gzip, deflate, br ) [accept-language] => Array ( [0] => en-US ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Android 14; Mobile; rv:124.0) Gecko/124.0 Firefox/124.0 ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-dest] => Array ( [0] => document ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-site] => Array ( [0] => none ) [sec-fetch-user] => Array ( [0] => ?1 ) [te] => Array ( [0] => trailers ) [x-https] => Array ( [0] => 1 ) ) [2024-04-02 05:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:12:13] 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 `created_at` desc [2024-04-02 05:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:12:13] 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 `created_at` desc [2024-04-02 05:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:12:13] 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 `created_at` desc [2024-04-02 05:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:12:31] 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 `created_at` desc [2024-04-02 05:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:12:31] 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 `created_at` desc [2024-04-02 05:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:12:31] 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 `created_at` desc [2024-04-02 05:12: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-02 05:12: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-02 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:41:29] 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 `created_at` desc [2024-04-02 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:41:29] 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 `created_at` desc [2024-04-02 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:41:29] 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 `created_at` desc [2024-04-02 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:43:50] 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 `created_at` desc [2024-04-02 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:43:50] 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 `created_at` desc [2024-04-02 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:43:50] 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 `created_at` desc [2024-04-02 05: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 05: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 05: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 05:44: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:44:41] 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 `created_at` desc [2024-04-02 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:44:41] 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 `created_at` desc [2024-04-02 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:44:41] 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 `created_at` desc [2024-04-02 05: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 05:44:43] 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-02 05:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:44:51] 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 `created_at` desc [2024-04-02 05:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:44:51] 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 `created_at` desc [2024-04-02 05:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:44:51] 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 `created_at` desc [2024-04-02 05:46: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-02 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:46:53] 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 `created_at` desc [2024-04-02 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:46:53] 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 `created_at` desc [2024-04-02 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:46:53] 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 `created_at` desc [2024-04-02 05:47: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-02 05: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:51:08] 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 `created_at` desc [2024-04-02 05: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:51:08] 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 `created_at` desc [2024-04-02 05: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 05:51:08] 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 `created_at` desc [2024-04-02 06:07: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 06:07: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-02 06:07: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-02 06:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:07:21] 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 `created_at` desc [2024-04-02 06:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:07:21] 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 `created_at` desc [2024-04-02 06:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:07:21] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:07:43] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:07:43] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:07:43] 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 `created_at` desc [2024-04-02 06:07: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-02 06:07: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-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 06:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:09:07] 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 `created_at` desc [2024-04-02 06:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:09:07] 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 `created_at` desc [2024-04-02 06:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:09:07] 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 `created_at` desc [2024-04-02 06:12: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-02 06:12: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-02 06:16: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-02 06:29: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:29:42] 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 `created_at` desc [2024-04-02 06:29: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:29:42] 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 `created_at` desc [2024-04-02 06:29: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:29:42] 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 `created_at` desc [2024-04-02 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:44:24] 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 `created_at` desc [2024-04-02 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:44:24] 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 `created_at` desc [2024-04-02 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:44:24] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:45:11] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:45:11] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:45:11] 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 `created_at` desc [2024-04-02 06:46: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:08] 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 `created_at` desc [2024-04-02 06:46: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:08] 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 `created_at` desc [2024-04-02 06:46: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:08] 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 `created_at` desc [2024-04-02 06:46: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:34] 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 `created_at` desc [2024-04-02 06:46: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:34] 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 `created_at` desc [2024-04-02 06:46: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:34] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:41] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:41] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:46:41] 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 `created_at` desc [2024-04-02 06:47: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:47:53] 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 `created_at` desc [2024-04-02 06:47: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:47:53] 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 `created_at` desc [2024-04-02 06:47: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:47:53] 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 `created_at` desc [2024-04-02 06:50: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 06:50: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 06:50: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-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:52:48] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:52:48] 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 `created_at` desc [2024-04-02 06: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 06:52:48] 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 `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-02 07:16: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-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:25:57] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:25:57] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:25:57] 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 `created_at` desc [2024-04-02 07:26: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-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:27:08] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:27:08] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:27:08] 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 `created_at` desc [2024-04-02 07:27: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-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:27:57] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:27:57] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:27:57] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`task_settings`.`visible_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-02 07:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:30:34] 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 `created_at` desc [2024-04-02 07:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:30:34] 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 `created_at` desc [2024-04-02 07:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:30:34] 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 `created_at` desc [2024-04-02 07: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-02 07:30:37] 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-02 07:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:30:41] 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 `created_at` desc [2024-04-02 07:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:30:41] 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 `created_at` desc [2024-04-02 07:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:30:41] 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 `created_at` desc [2024-04-02 07:30: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-02 07: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:32:41] 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 `created_at` desc [2024-04-02 07: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:32:41] 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 `created_at` desc [2024-04-02 07: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:32:41] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:32:44] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:32:44] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:32:44] 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 `created_at` desc [2024-04-02 07:32: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:01] 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 `created_at` desc [2024-04-02 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:01] 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 `created_at` desc [2024-04-02 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:01] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`task_settings`.`visible_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-02 07:35: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:19] 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 `created_at` desc [2024-04-02 07:35: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:19] 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 `created_at` desc [2024-04-02 07:35: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:19] 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 `created_at` desc [2024-04-02 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 07:35:21] 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-02 07:35: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-02 07:35:23] 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-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:35] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:35] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:35:35] 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 `created_at` desc [2024-04-02 07:35: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:38:06] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:38:06] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:38:06] 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 `created_at` desc [2024-04-02 07: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:38:51] 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 `created_at` desc [2024-04-02 07: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:38:51] 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 `created_at` desc [2024-04-02 07: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:38:51] 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 `created_at` desc [2024-04-02 07: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 07:38:58] 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-02 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 07:39:02] 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-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:39] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:39] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:39] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:49] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:49] 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 `created_at` desc [2024-04-02 07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:49] 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 `created_at` desc [2024-04-02 07:39: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-02 07:39:55] 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-02 07:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:57] 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 `created_at` desc [2024-04-02 07:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:57] 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 `created_at` desc [2024-04-02 07:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:39:57] 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 `created_at` desc [2024-04-02 07:40: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:40:26] 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 `created_at` desc [2024-04-02 07:40: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:40:26] 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 `created_at` desc [2024-04-02 07:40: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:40:26] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 07: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:42:33] 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 `created_at` desc [2024-04-02 07: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:42:33] 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 `created_at` desc [2024-04-02 07: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:42:33] 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 `created_at` desc [2024-04-02 07:42: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:43:41] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:43:41] 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 `created_at` desc [2024-04-02 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 07:43:41] 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 `created_at` desc [2024-04-02 09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:09:40] 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 `created_at` desc [2024-04-02 09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:09:40] 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 `created_at` desc [2024-04-02 09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:09:40] 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 `created_at` desc [2024-04-02 09:10: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-02 09:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:31:37] 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 `created_at` desc [2024-04-02 09:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 09:31:37] 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 `created_at` desc [2024-04-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:39:29] 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 `created_at` desc [2024-04-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:39:29] 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 `created_at` desc [2024-04-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:39:29] 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 `created_at` desc [2024-04-02 09:39: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-02 09:39:36] 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-02 09:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:39:40] 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 `created_at` desc [2024-04-02 09:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:39:40] 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 `created_at` desc [2024-04-02 09:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:39:40] 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 `created_at` desc [2024-04-02 09: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-02 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:47:11] 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 `created_at` desc [2024-04-02 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:47:11] 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 `created_at` desc [2024-04-02 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:47:11] 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 `created_at` desc [2024-04-02 09:47: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-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:49:48] 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 `created_at` desc [2024-04-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:49:48] 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 `created_at` desc [2024-04-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:49:48] 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 `created_at` desc [2024-04-02 09:53: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-02 09:57:34] local.DEBUG: Product Image Details: Array ( [product_id] => 192 [image_name] => 3970968491712051854.jpeg ) [2024-04-02 09:57:34] local.DEBUG: Product Image Details: Array ( [product_id] => 192 [image_name] => 13578246211712051854.jpeg ) [2024-04-02 09:57:34] 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-02 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:57:35] 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 `created_at` desc [2024-04-02 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:57:35] 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 `created_at` desc [2024-04-02 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 09:57:35] 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 `created_at` desc [2024-04-02 10:04: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:04:23] 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 `created_at` desc [2024-04-02 10:04: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:04:23] 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 `created_at` desc [2024-04-02 10:04: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:04:27] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:04:27] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:05:54] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:05:54] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 10:05:55] 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-02 10:06: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`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:03] 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 `created_at` desc [2024-04-02 10:06: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`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:06:03] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:20] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:20] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:20] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:27] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:27] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:06:27] 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 `created_at` desc [2024-04-02 10:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:13] 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 `created_at` desc [2024-04-02 10:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:13] 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 `created_at` desc [2024-04-02 10:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:13] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:07:17] 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-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:07:23] 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-02 10:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:26] 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 `created_at` desc [2024-04-02 10:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:26] 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 `created_at` desc [2024-04-02 10:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:26] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:07:28] 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-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:30] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:30] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:07:30] 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 `created_at` desc [2024-04-02 10:07: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-02 10:07:33] 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-02 10:07: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-02 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`.`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-02 10:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:24] 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 `created_at` desc [2024-04-02 10:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:24] 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 `created_at` desc [2024-04-02 10: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`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:29] 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 `created_at` desc [2024-04-02 10:09: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`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:30] 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 `created_at` desc [2024-04-02 10:09: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`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:32] 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 `created_at` desc [2024-04-02 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`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:09:40] 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 `created_at` desc [2024-04-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:09:40] 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 `created_at` desc [2024-04-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:09:40] 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 `created_at` desc [2024-04-02 10: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`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:46] 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 `created_at` desc [2024-04-02 10:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:09:50] 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 `created_at` desc [2024-04-02 10:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:09:50] 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 `created_at` desc [2024-04-02 10:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:09:50] 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 `created_at` desc [2024-04-02 10:09: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_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:54] 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 `created_at` desc [2024-04-02 10:09: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_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 10:09:55] 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 `created_at` desc [2024-04-02 10:10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:10:01] 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 `created_at` desc [2024-04-02 10:10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:10:01] 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 `created_at` desc [2024-04-02 10:10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:10:01] 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 `created_at` desc [2024-04-02 10:10: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-02 10:10:08] 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-02 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-02 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`.`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-02 10:10: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10:10: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-02 10:10:46] 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-02 10:11: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-02 10:11:10] 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-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 10:11: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-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 10:11: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-02 10:11:25] 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-02 10:11: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-02 10:11:57] 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-02 10:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:12:02] 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 `created_at` desc [2024-04-02 10:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:12:02] 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 `created_at` desc [2024-04-02 10:12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:12:02] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 10:12:19] 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-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:13:37] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:13:37] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:13:37] 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 `created_at` desc [2024-04-02 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 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`.`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-02 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 10:17:46] 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-02 10: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-02 10:17:48] 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-02 10:17: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-02 10:17:56] 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-02 10:17: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-02 10:17:59] 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-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:19:13] 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 `created_at` desc [2024-04-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:19:13] 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 `created_at` desc [2024-04-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:19:13] 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 `created_at` desc [2024-04-02 10:19: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-02 10:19:16] 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-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:22:07] 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-02 10:22: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:22:08] 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 `created_at` desc [2024-04-02 10:22: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:22:08] 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 `created_at` desc [2024-04-02 10:22: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:22:08] 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 `created_at` desc [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:22:11] 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-02 10:22: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-02 10:22: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-02 10: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:22:23] 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-02 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 10:23:30] 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-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:34:12] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:34:12] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:34:12] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 10:34:16] 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-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:35:13] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:35:13] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:35:13] 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 `created_at` desc [2024-04-02 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 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`.`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-02 10:35: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10:35: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-02 10:35: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-02 10: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10:35: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10:35: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10:35: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 10:35: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-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:36:14] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:36:14] 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 `created_at` desc [2024-04-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:36:14] 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 `created_at` desc [2024-04-02 10:36: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-02 10:36:17] 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-02 10:36: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:36:56] 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 `created_at` desc [2024-04-02 10:36: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:36:56] 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 `created_at` desc [2024-04-02 10:36: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:36:56] 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 `created_at` desc [2024-04-02 10: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 10:37:00] 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-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:37:50] 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 `created_at` desc [2024-04-02 10: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:37:50] 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 `created_at` desc [2024-04-02 10: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 10:37:50] 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 `created_at` desc [2024-04-02 10:37: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-02 10:37:53] 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-02 10:44: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-02 10:44:07] 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-02 10: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 10:44:12] 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-02 11:13: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-02 11:13:40] 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-02 11:23:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:23:31] 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 `created_at` desc [2024-04-02 11:23:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 11:23:31] 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 `created_at` desc [2024-04-02 11:24: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:24:29] 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 `created_at` desc [2024-04-02 11:24: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:24:29] 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 `created_at` desc [2024-04-02 11:24: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:24:29] 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 `created_at` desc [2024-04-02 11:24: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-02 11:24: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:24:41] 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 `created_at` desc [2024-04-02 11:24: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:24:41] 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 `created_at` desc [2024-04-02 11:24: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:24:41] 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 `created_at` desc [2024-04-02 11: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 11:24:43] 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-02 11:24: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-02 11:25: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:25:11] 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 `created_at` desc [2024-04-02 11:25: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:25:11] 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 `created_at` desc [2024-04-02 11:25: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:25:11] 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 `created_at` desc [2024-04-02 11:25: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 11:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:37:32] 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 `created_at` desc [2024-04-02 11:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:37:32] 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 `created_at` desc [2024-04-02 11:37: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:37:32] 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 `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-02 11: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:40:43] 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 `created_at` desc [2024-04-02 11: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:40:43] 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 `created_at` desc [2024-04-02 11: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:40:43] 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 `created_at` desc [2024-04-02 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:43:25] 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 `created_at` desc [2024-04-02 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:43:25] 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 `created_at` desc [2024-04-02 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:43:25] 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 `created_at` desc [2024-04-02 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:43:32] 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 `created_at` desc [2024-04-02 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:43:32] 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 `created_at` desc [2024-04-02 11: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 11:43:33] 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 `created_at` desc [2024-04-02 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 11:43:34] 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-02 11:43: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 11:43: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-02 11:43:37] 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-02 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 11:43:49] 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-02 11: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 11:43:56] 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-02 11:43: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 12:20: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:20:15] 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 `created_at` desc [2024-04-02 12:20: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:20:15] 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 `created_at` desc [2024-04-02 12:20: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:20:15] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 12:20:51] 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-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:20:53] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:20:53] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:20:53] 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 `created_at` desc [2024-04-02 12:32: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:32:25] 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 `created_at` desc [2024-04-02 12:32: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:32:25] 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 `created_at` desc [2024-04-02 12:32: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:32:25] 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 `created_at` desc [2024-04-02 12: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 12:32: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:32:39] 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 `created_at` desc [2024-04-02 12:32: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:32:39] 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 `created_at` desc [2024-04-02 12:32: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:32:39] 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 `created_at` desc [2024-04-02 12:32: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-02 12:32:46] 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-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:32:53] 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-02 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` = ?) or (`task_settings`.`visible_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-02 12:35: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 12:35: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-02 12:35: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-02 12:35: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-02 12:35: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-02 12:35: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-02 12:35:57] 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-02 12: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` = ?) or (`task_settings`.`visible_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-02 12:38: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-02 12:38:18] 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-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:38:21] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:38:21] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:38:21] 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 `created_at` desc [2024-04-02 12:38: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-02 12:38:23] 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-02 12:38: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-02 12: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 `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-02 12:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:39:56] 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 `created_at` desc [2024-04-02 12:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:39:56] 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 `created_at` desc [2024-04-02 12:39: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:39:56] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 12:39:59] 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-02 12:40: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-02 12:40: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-02 12:40:01] 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-02 12:40: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-02 12:40:06] 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-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 12:40:08] 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-02 12: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 12:41: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:41:32] 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 `created_at` desc [2024-04-02 12:41: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:41:32] 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 `created_at` desc [2024-04-02 12:41: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:41:32] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 12:41:36] 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-02 12:41: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-02 12:41: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-02 12:41:39] 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-02 12: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-02 12:42:01] 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-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:42:07] 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-02 12: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` = ?) or (`task_settings`.`visible_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-02 12:42: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-02 12:42:10] 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-02 12:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:44:10] 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 `created_at` desc [2024-04-02 12:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:44:10] 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 `created_at` desc [2024-04-02 12:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:44:10] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:44:35] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:44:35] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:44:35] 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 `created_at` desc [2024-04-02 12:44: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-02 12:44:40] 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-02 12:44: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-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:44:44] 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-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:44:44] 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-02 12:45: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-02 12: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-02 12:45:10] 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-02 12:45: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 12:45: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-02 12:45: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-02 12:45: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:45:23] 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 `created_at` desc [2024-04-02 12:45: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:45:23] 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 `created_at` desc [2024-04-02 12:45: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:45:23] 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 `created_at` desc [2024-04-02 12:45: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-02 12:48: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-02 12:48:57] 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-02 12:48: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-02 12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:50:43] 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 `created_at` desc [2024-04-02 12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:50:43] 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 `created_at` desc [2024-04-02 12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:50:43] 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 `created_at` desc [2024-04-02 12:50: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-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:50:57] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:50:57] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:50:57] 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 `created_at` desc [2024-04-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 12:51:02] 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-02 12:51: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-02 12: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 12:51:03] 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-02 12:51: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 12:52: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:52:45] 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 `created_at` desc [2024-04-02 12:52: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:52:45] 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 `created_at` desc [2024-04-02 12:52: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:52:45] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:52:55] 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-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:52:59] 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-02 12:52: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-02 12:53: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:53:10] 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 `created_at` desc [2024-04-02 12:53: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:53:10] 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 `created_at` desc [2024-04-02 12:53: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:53:10] 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 `created_at` desc [2024-04-02 12:53: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-02 12:53: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-02 12:53:19] 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-02 12:54:24] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 12:54:24] local.DEBUG: Product Image Details: Array ( [product_id] => 193 [image_name] => 5128953111712062464.jpeg ) [2024-04-02 12:54:25] local.DEBUG: Product Image Details: Array ( [product_id] => 193 [image_name] => 18529329801712062464.jpeg ) [2024-04-02 12:54:25] 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-02 12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:56:10] 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 `created_at` desc [2024-04-02 12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:56:10] 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 `created_at` desc [2024-04-02 12: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:56:10] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:56:25] 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-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:56:28] 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-02 12: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 12:56: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-02 12:56:59] local.DEBUG: Product Image Details: Array ( [product_id] => 192 [image_name] => 19550335641712062619.jpeg ) [2024-04-02 12:56:59] local.DEBUG: Product Image Details: Array ( [product_id] => 192 [image_name] => 1592635501712062619.jpeg ) [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:57:02] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:57:02] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:57:02] 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 `created_at` desc [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:57:09] 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-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:57:13] 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-02 12:57: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-02 12:57:14] 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-02 12: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` = ?) or (`task_settings`.`visible_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-02 12: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 12:57: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-02 12:57:27] 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-02 12:57: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-02 12:57:27] 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-02 12:57: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-02 12:57:35] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 7716763911712062655.png ) [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:57:35] 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-02 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` = ?) or (`task_settings`.`visible_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-02 12:57: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-02 12:57:39] 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-02 12:58: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-02 12:58:25] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 18081299111712062705.png ) [2024-04-02 12:58:25] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 11316424301712062705.png ) [2024-04-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:58:25] 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-02 12:58: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-02 12: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:58:34] 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-02 12:58: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-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:58:36] 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-02 12:59: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:59:06] 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 `created_at` desc [2024-04-02 12:59: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:59:06] 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 `created_at` desc [2024-04-02 12:59: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:59:06] 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 `created_at` desc [2024-04-02 12:59: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-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:59:16] 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-02 12:59: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:59:19] 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 `created_at` desc [2024-04-02 12:59: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:59:19] 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 `created_at` desc [2024-04-02 12:59: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 12:59:19] 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 `created_at` desc [2024-04-02 12:59: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-02 12:59:24] 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-02 12:59: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-02 12:59:30] 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-02 12:59: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-02 12:59: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-02 12:59:32] 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-02 12:59: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-02 12:59:57] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 19154874231712062797.png ) [2024-04-02 12:59:57] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 20401666361712062797.png ) [2024-04-02 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 12:59:58] 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-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:00:15] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:00:15] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:00:15] 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 `created_at` desc [2024-04-02 13:00: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-02 13:00:17] 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-02 13:00: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-02 13:00:32] 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-02 13:00: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-02 13:01: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-02 13:01:55] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 13046551961712062915.png ) [2024-04-02 13:01:55] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 18680717121712062915.png ) [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 13:01:55] 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-02 13:02: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-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 13:02:15] 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-02 13:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:07:44] 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 `created_at` desc [2024-04-02 13:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:07:44] 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 `created_at` desc [2024-04-02 13:07: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:07:44] 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 `created_at` desc [2024-04-02 13:08: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:08:10] 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 `created_at` desc [2024-04-02 13:08: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:08:10] 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 `created_at` desc [2024-04-02 13:08: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:08:10] 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 `created_at` desc [2024-04-02 13:08: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-02 13:08:12] 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-02 13:08: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 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`.`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-02 13:08: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-02 13:08:33] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 8038166171712063313.png ) [2024-04-02 13:08:33] local.DEBUG: Product Image Details: Array ( [product_id] => 173 [image_name] => 2984857771712063313.png ) [2024-04-02 13: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 13:08:34] 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-02 13:08: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-02 13:08:40] 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-02 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 13:08:45] 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-02 13:08: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`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-02 13:08: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-02 13:08: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-02 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 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`.`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-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 13:08:58] 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-02 13:09: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-02 13:09:20] 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-02 13:09: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-02 13:09: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-02 13:09:22] 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-02 13:09:47] local.DEBUG: Product Image Details: Array ( [product_id] => 194 [image_name] => 11684114991712063387.png ) [2024-04-02 13:09:47] local.DEBUG: Product Image Details: Array ( [product_id] => 194 [image_name] => 16105114441712063387.png ) [2024-04-02 13:09: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-02 13:09: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-02 13:09: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-02 13:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:09:57] 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 `created_at` desc [2024-04-02 13:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:09:57] 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 `created_at` desc [2024-04-02 13:09: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:09:57] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:10:15] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:10:15] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:10:15] 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 `created_at` desc [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:27:33] 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 `created_at` desc [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:27:33] 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 `created_at` desc [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:27:33] 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 `created_at` desc [2024-04-02 13:27: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:27:42] 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 `created_at` desc [2024-04-02 13:27: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:27:42] 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 `created_at` desc [2024-04-02 13:27: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:27:42] 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 `created_at` desc [2024-04-02 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 13:27:44] 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-02 13:28: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-02 13:28:23] 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-02 13: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 13: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 13: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 13:28: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-02 13:28: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-02 13:29: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-02 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:29:40] 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 `created_at` desc [2024-04-02 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:29:40] 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 `created_at` desc [2024-04-02 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:29:40] 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 `created_at` desc [2024-04-02 13: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02 13:29:48] 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-02 13:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:07] 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 `created_at` desc [2024-04-02 13:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:07] 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 `created_at` desc [2024-04-02 13:30: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:07] 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 `created_at` desc [2024-04-02 13:30: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-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:49] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:49] 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 `created_at` desc [2024-04-02 13: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:49] 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 `created_at` desc [2024-04-02 13:30: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-02 13:30:50] 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-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:51] 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 `created_at` desc [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:51] 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 `created_at` desc [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:30:51] 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 `created_at` desc [2024-04-02 13:30: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-02 13:30: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 13:30: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-02 13:30: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-02 13:33: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:33:17] 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 `created_at` desc [2024-04-02 13:33: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:33:17] 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 `created_at` desc [2024-04-02 13:33: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:33:17] 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 `created_at` desc [2024-04-02 13: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-02 13:33:30] 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-02 13:43:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:43:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:43:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:43:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:43:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:43:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:43:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:43:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 13:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 13:44:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 13:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 13:44: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:44: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-02' 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-02 13:44: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:44: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-02' 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-02 13:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:17] 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 `created_at` desc [2024-04-02 13:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:17] 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 `created_at` desc [2024-04-02 13:44: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-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:17] 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 `created_at` desc [2024-04-02 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 13:44:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:44: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-02' 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-02 13:44: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-02 13:44:40] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-02 13:44:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 13:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 13:44:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:44:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:44: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:44: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-02' 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-02 13:44: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-02 13:44:57] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-02 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 13:45: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:45: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-02' 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-02 13:45: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-02 13:45:23] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-02 13:45: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:45: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-02' 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-02 13:45: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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:45: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-02' 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-02 13:45: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:45: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-02' 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-02 13:45: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:45: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-02' 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-02 13:45:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:45:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:45: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-02 13:45:35] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-02 13:45:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:45:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:45:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:45:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:45:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:45:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:45:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:45:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-02 13:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:46: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:46: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-02' 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-02 13:46: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:46: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-02' 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-02 13:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:46: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:46: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-02' 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-02 13: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-02 13:46:36] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-02 13:46: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-05' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:46: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-02' 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-02 13:46: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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' and `tasks`.`due_by` > '2024-04-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-02 13:46: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-02' 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-02 13:47:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:47:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 13:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-02 13:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-02 19:10:19] 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-02 19:10:19] 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-02 21:03:31] 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-02 21:03:31] 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-02 21:03:43] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 ) [accept-encoding] => Array ( [0] => gzip, deflate, br ) [accept-language] => Array ( [0] => en-US ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (Android 14; Mobile; rv:124.0) Gecko/124.0 Firefox/124.0 ) [upgrade-insecure-requests] => Array ( [0] => 1 ) [sec-fetch-dest] => Array ( [0] => document ) [sec-fetch-mode] => Array ( [0] => navigate ) [sec-fetch-site] => Array ( [0] => none ) [sec-fetch-user] => Array ( [0] => ?1 ) [te] => Array ( [0] => trailers ) [x-https] => Array ( [0] => 1 ) ) [2024-04-02 23:24:39] 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-02 23:24:39] 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-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:21:15] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:21:15] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:21:15] 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 `created_at` desc [2024-04-03 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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 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`.`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-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:21:38] 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 `created_at` desc [2024-04-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:21:38] 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 `created_at` desc [2024-04-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:21:38] 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 `created_at` desc [2024-04-03 05: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 05:22:09] 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-03 05:23: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:23:40] 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 `created_at` desc [2024-04-03 05:23: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:23:40] 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 `created_at` desc [2024-04-03 05:23: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:23:40] 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 `created_at` desc [2024-04-03 05:23: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:23:40] 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 `created_at` desc [2024-04-03 05:23: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:23:40] 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 `created_at` desc [2024-04-03 05:23: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:23:40] 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 `created_at` desc [2024-04-03 05:23: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 05:23: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-03 05:23: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-03 05:23: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 05:23:58] 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-03 05: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 05:24: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-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:24:16] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:24:16] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:24:16] 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 `created_at` desc [2024-04-03 05:24: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-03 05:24:20] 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-03 05:24: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:24:35] 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 `created_at` desc [2024-04-03 05:24: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:24:35] 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 `created_at` desc [2024-04-03 05:24: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:24:35] 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 `created_at` desc [2024-04-03 05: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 05:24:43] 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-03 05:25: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-03 05:25:12] 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-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:30:57] 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 `created_at` desc [2024-04-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:30:57] 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 `created_at` desc [2024-04-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:30:57] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 05:31:19] 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-03 05:31: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-03 05:31:21] 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-03 05:31: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-03 05:31:42] local.DEBUG: Product Image Details: Array ( [product_id] => 195 [image_name] => 15061777671712122302.jpeg ) [2024-04-03 05:31:42] local.DEBUG: Product Image Details: Array ( [product_id] => 195 [image_name] => 2730939911712122302.jpeg ) [2024-04-03 05:31:42] 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-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:31:49] 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 `created_at` desc [2024-04-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:31:49] 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 `created_at` desc [2024-04-03 05: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:31:49] 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 `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 05:33: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:33:35] 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 `created_at` desc [2024-04-03 05:33: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:33:35] 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 `created_at` desc [2024-04-03 05:33: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:33:35] 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 `created_at` desc [2024-04-03 05:33: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-03 05:33:37] 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-03 05:43:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:43:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 05:44: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:44:07] 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 `created_at` desc [2024-04-03 05:44: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:44:07] 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 `created_at` desc [2024-04-03 05:44: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:44:07] 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 `created_at` desc [2024-04-03 05:45: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:45:27] 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 `created_at` desc [2024-04-03 05:45: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:45:27] 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 `created_at` desc [2024-04-03 05:45: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:45:27] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:46:14] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:46:14] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:46:14] 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 `created_at` desc [2024-04-03 05:46: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:46:45] 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 `created_at` desc [2024-04-03 05:46: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:46:45] 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 `created_at` desc [2024-04-03 05:46: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:46:45] 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 `created_at` desc [2024-04-03 05:47: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:47:46] 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 `created_at` desc [2024-04-03 05:47: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:47:46] 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 `created_at` desc [2024-04-03 05:47: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:47:46] 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 `created_at` desc [2024-04-03 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 05:47:49] 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 `created_at` desc [2024-04-03 05:47: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 05:47:51] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:48:20] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:48:20] 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 `created_at` desc [2024-04-03 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 05:48:20] 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 `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 05:52:02] 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-03 05:52:02] 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-03 06:25: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:25:55] 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 `created_at` desc [2024-04-03 06:25: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:25:55] 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 `created_at` desc [2024-04-03 06:25: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:25:55] 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 `created_at` desc [2024-04-03 06:37: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:37:23] 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 `created_at` desc [2024-04-03 06:37: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:37:23] 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 `created_at` desc [2024-04-03 06:37: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:37:23] 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 `created_at` desc [2024-04-03 06:37: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:37:56] 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 `created_at` desc [2024-04-03 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:45:24] 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 `created_at` desc [2024-04-03 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:45:24] 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 `created_at` desc [2024-04-03 06: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:45:24] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:46:11] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:46:14] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:46:17] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:46:19] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:46:21] 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 `created_at` desc [2024-04-03 06:46: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:46:24] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:48:27] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:48:27] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:48:27] 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 `created_at` desc [2024-04-03 06:50: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:50:53] 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 `created_at` desc [2024-04-03 06: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:50:53] 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 `created_at` desc [2024-04-03 06: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:50:53] 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 `created_at` desc [2024-04-03 06:53: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:53:25] 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 `created_at` desc [2024-04-03 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:54:52] 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 `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:20] 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 `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:20] 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 `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:20] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:57:28] 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 `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:31] 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 `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:31] 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 `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:31] 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 `created_at` desc [2024-04-03 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 06:57: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 06:57:40] 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 `created_at` desc [2024-04-03 06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:42] 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 `created_at` desc [2024-04-03 06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57:42] 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 `created_at` desc [2024-04-03 06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57: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 `created_at` desc [2024-04-03 06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57: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 `created_at` desc [2024-04-03 06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:57: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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:58:33] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:58:33] 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 `created_at` desc [2024-04-03 06: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 06:58:33] 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 `created_at` desc [2024-04-03 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-03 07:07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:07:25] 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 `created_at` desc [2024-04-03 07:07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:07:25] 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 `created_at` desc [2024-04-03 07:07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:07:25] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:07:31] 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 `created_at` desc [2024-04-03 07:07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:07:36] 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 `created_at` desc [2024-04-03 07:07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:07:36] 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 `created_at` desc [2024-04-03 07:07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:07:36] 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 `created_at` desc [2024-04-03 07:10: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:10:08] 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 `created_at` desc [2024-04-03 07:10: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:10:08] 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 `created_at` desc [2024-04-03 07:10: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:10:08] 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 `created_at` desc [2024-04-03 07:10: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_category_id` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:10:37] 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 `created_at` desc [2024-04-03 07:13: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:13:39] 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 `created_at` desc [2024-04-03 07:13: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:13:39] 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 `created_at` desc [2024-04-03 07:13: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:13:39] 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 `created_at` desc [2024-04-03 07:13: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_category_id` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:13:40] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:13:44] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:13:44] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:13:44] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:13:55] 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 `created_at` desc [2024-04-03 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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 07:14: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:14:00] 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 `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 07:14: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_category_id` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:09] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:09] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:09] 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 `created_at` desc [2024-04-03 07:14: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_category_id` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:14:17] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:29] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:29] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:29] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:14:36] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:14:36] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:41] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:41] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:41] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:14:42] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:46] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:46] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:46] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:48] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:48] 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 `created_at` desc [2024-04-03 07:14: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:14:48] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:15:46] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:15:46] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:15:46] 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 `created_at` desc [2024-04-03 07: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` = ?) 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:15: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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:15: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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:16:02] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:16:02] 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 `created_at` desc [2024-04-03 07: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` = ?) 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:16:04] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:16:04] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:16:05] 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 `created_at` desc [2024-04-03 07:16: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:16:06] 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 `created_at` desc [2024-04-03 07:16: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:16:06] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:17:37] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:17:37] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:17:37] 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 `created_at` desc [2024-04-03 07:19: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:16] 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 `created_at` desc [2024-04-03 07:19: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:16] 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 `created_at` desc [2024-04-03 07:19: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:18] 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 `created_at` desc [2024-04-03 07:19: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:19] 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 `created_at` desc [2024-04-03 07:19: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:19] 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 `created_at` desc [2024-04-03 07:19: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_category_id` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:21] 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 `created_at` desc [2024-04-03 07: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` = ?) 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:22] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:22] 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 `created_at` desc [2024-04-03 07:19: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_category_id` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:23] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:25] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:25] 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 `created_at` desc [2024-04-03 07: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` = ?) 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:26] 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 `created_at` desc [2024-04-03 07: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:28] 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 `created_at` desc [2024-04-03 07:19: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:19:28] 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 `created_at` desc [2024-04-03 07:19: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:30] 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 `created_at` desc [2024-04-03 07:19: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:30] 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 `created_at` desc [2024-04-03 07:19: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:19:30] 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 `created_at` desc [2024-04-03 07:20: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:20:20] 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 `created_at` desc [2024-04-03 07:20: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 07:20:20] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:20:21] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:20:21] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:20:21] 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 `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 07:20: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 07:20: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-03 07:20: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-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 07: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`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 07:32:23] 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-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-03 07:32:37] 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-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:32:38] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:32:38] 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 `created_at` desc [2024-04-03 07: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:32:38] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`task_settings`.`visible_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-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:33:44] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:33:44] 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 `created_at` desc [2024-04-03 07: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 07:33:44] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:45:02] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:45:02] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:45:02] 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 `created_at` desc [2024-04-03 08:45: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:45: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-03 08:45: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-03 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:45: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-03 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:49: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:49:03] 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 `created_at` desc [2024-04-03 08:49: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:49:03] 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 `created_at` desc [2024-04-03 08:49: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:49:03] 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 `created_at` desc [2024-04-03 08: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08: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-03 08: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-03 08:51: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-03 08:51: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-03 08: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-03 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:51: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:51: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-03 08:51: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-03 08:51: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:51:58] 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 `created_at` desc [2024-04-03 08:51: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:51:58] 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 `created_at` desc [2024-04-03 08:51: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:51:58] 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 `created_at` desc [2024-04-03 08:51: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-03 08:52:12] 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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:52:12] 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-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:52:12] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:52:12] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:52:12] 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 `created_at` desc [2024-04-03 08:52: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:52: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-03 08:52: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-03 08:52: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-03 08:52: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-03 08:52: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-03 08: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-03 08: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 `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-03 08:52: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":"john@gmail.com","name":"John 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 John Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test johntask<\\/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-03 08:52:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.86123540-f197-11ee-b186-525400f92481.18ea3290694","object":"email"} [2024-04-03 08: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08: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` = ?) or (`task_settings`.`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-03 08:52: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 08:52: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-03 08:52: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-03 08:53:08] 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 1<\\/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-03 08:53:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.98449050-f197-11ee-b186-525400f92481.18ea3297dd5","object":"email"} [2024-04-03 08:53: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":"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 1<\\/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-03 08:53:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.987452e0-f197-11ee-9de0-52540064429e.18ea3297f0e","object":"email"} [2024-04-03 08: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-03 08: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 `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-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:55:44] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:55:44] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:55:44] 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 `created_at` desc [2024-04-03 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 08:55:46] 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 `created_at` desc [2024-04-03 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 08:55: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 `created_at` desc [2024-04-03 08: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 08:55:51] 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 `created_at` desc [2024-04-03 08:55: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 08:55:52] 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 `created_at` desc [2024-04-03 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 08:55:58] 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 `created_at` desc [2024-04-03 08:55: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`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-03 08:55:59] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:03] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:03] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:03] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:49] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:49] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:49] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:56] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:56] 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 `created_at` desc [2024-04-03 08:56: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:56:56] 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 `created_at` desc [2024-04-03 08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:57:03] 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 `created_at` desc [2024-04-03 08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:57:03] 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 `created_at` desc [2024-04-03 08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:57:03] 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 `created_at` desc [2024-04-03 08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:57: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 `created_at` desc [2024-04-03 08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:57: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 `created_at` desc [2024-04-03 08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:57: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 `created_at` desc [2024-04-03 08:58: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:58:00] 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 `created_at` desc [2024-04-03 08:58: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:58:00] 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 `created_at` desc [2024-04-03 08:58: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 08:58:00] 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 `created_at` desc [2024-04-03 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:06:21] 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 `created_at` desc [2024-04-03 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:06:21] 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 `created_at` desc [2024-04-03 09: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:06:21] 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 `created_at` desc [2024-04-03 09:06: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`.`due_by` <= '2024-04-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 09:06: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-03 09:06: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 09:06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:06:30] 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 `created_at` desc [2024-04-03 09:06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:06:30] 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 `created_at` desc [2024-04-03 09:06: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:06:30] 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 `created_at` desc [2024-04-03 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:07:19] 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 `created_at` desc [2024-04-03 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:07:19] 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 `created_at` desc [2024-04-03 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:07:19] 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 `created_at` desc [2024-04-03 09: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 09: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-03 09: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-03 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:07:51] 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 `created_at` desc [2024-04-03 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:07:51] 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 `created_at` desc [2024-04-03 09: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:07:51] 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 `created_at` desc [2024-04-03 09:11: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:11:27] 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 `created_at` desc [2024-04-03 09:11: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:11:27] 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 `created_at` desc [2024-04-03 09:11: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:11:27] 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 `created_at` desc [2024-04-03 09: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:13:04] 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 `created_at` desc [2024-04-03 09: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:13:04] 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 `created_at` desc [2024-04-03 09: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:13:04] 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 `created_at` desc [2024-04-03 09: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`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:14:18] 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 `created_at` desc [2024-04-03 09: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:14:18] 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 `created_at` desc [2024-04-03 09: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`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:14:18] 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 `created_at` desc [2024-04-03 09:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:15:07] 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 `created_at` desc [2024-04-03 09:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:15:07] 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 `created_at` desc [2024-04-03 09:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:15:07] 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 `created_at` desc [2024-04-03 09:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:15:48] 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 `created_at` desc [2024-04-03 09:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:15:48] 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 `created_at` desc [2024-04-03 09:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:15:48] 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 `created_at` desc [2024-04-03 09:21:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:21:40] 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 `created_at` desc [2024-04-03 09:21:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 09:21:40] 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 `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 09:37: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":"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-03 09:37:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.db06f5d0-f19d-11ee-9151-5254000b1a0e.18ea35285ad","object":"email"} [2024-04-03 09:38:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:38:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 09:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 09:38:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:38:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 09: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-03 09: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-03' 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-03 09:38:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:38:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 09:41: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-06' and `tasks`.`due_by` > '2024-04-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-03 09:41: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-03' 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-03 09:41:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:41:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 09:42:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 09:42:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:10:09] 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 `created_at` desc [2024-04-03 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:10:09] 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 `created_at` desc [2024-04-03 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:10:09] 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 `created_at` desc [2024-04-03 10:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-03 10:36: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 10:36: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 10:36: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-03 10:36: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-03 10:36: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`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-03 10:36: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-03 10:36: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:36:48] 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 `created_at` desc [2024-04-03 10:36: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:36:48] 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 `created_at` desc [2024-04-03 10:36: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:36:48] 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 `created_at` desc [2024-04-03 10:37: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:37:56] 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 `created_at` desc [2024-04-03 10:37: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:37:56] 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 `created_at` desc [2024-04-03 10:37: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:37:56] 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 `created_at` desc [2024-04-03 10: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:38: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 `created_at` desc [2024-04-03 10: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`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:38: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 `created_at` desc [2024-04-03 10: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:38: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 `created_at` desc [2024-04-03 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:38:50] 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 `created_at` desc [2024-04-03 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:38:50] 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 `created_at` desc [2024-04-03 10: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 10:38:50] 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 `created_at` desc [2024-04-03 12:08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:08:08] 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 `created_at` desc [2024-04-03 12:08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:08:08] 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 `created_at` desc [2024-04-03 12:08: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:08:08] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:09:34] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:09:34] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:09:34] 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 `created_at` desc [2024-04-03 12:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:15:13] 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 `created_at` desc [2024-04-03 12:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:15:13] 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 `created_at` desc [2024-04-03 12:15: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:15:13] 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 `created_at` desc [2024-04-03 12: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:19:50] 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 `created_at` desc [2024-04-03 12: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:19:50] 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 `created_at` desc [2024-04-03 12: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-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:19:50] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:24:14] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:24:14] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:24:14] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:32:55] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:32:55] 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 `created_at` desc [2024-04-03 12: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-03 12:32:55] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:07:23] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:07:23] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:07:23] 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 `created_at` desc [2024-04-04 05: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 05:07:43] 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 `created_at` desc [2024-04-04 05: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 05:07:43] 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 `created_at` desc [2024-04-04 05: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 05:07:43] 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 `created_at` desc [2024-04-04 05:08: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`.`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 05:08:35] 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 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:08:36] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:08:36] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:08:36] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:08:45] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:08:45] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:08:45] 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 `created_at` desc [2024-04-04 05: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`.`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 05:08:51] 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 05:08: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 05:08:54] 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 `created_at` desc [2024-04-04 05:08: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 05:08:54] 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 `created_at` desc [2024-04-04 05:08: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 05:08:54] 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 `created_at` desc [2024-04-04 05:09: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":"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 \\"TestInvite\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: TestInvite<\\/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 05:09:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.85ecd1b0-f241-11ee-833a-525400103106.18ea783224b","object":"email"} [2024-04-04 05:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:10:00] 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 `created_at` desc [2024-04-04 05:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:10:00] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:10:28] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:10:28] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:10:28] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:14:34] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:14:34] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:14:34] 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 `created_at` desc [2024-04-04 05:14: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-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 05:14: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-04 05:14: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-04 05: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` = ?) or (`reward_settings`.`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 05:15:18] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:15:18] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:15:18] 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 `created_at` desc [2024-04-04 05:22: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 05:22:28] 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 `created_at` desc [2024-04-04 05:22: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 05:22:28] 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 `created_at` desc [2024-04-04 05:22: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 05:22:28] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:22:57] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:22:57] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:22:57] 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 `created_at` desc [2024-04-04 05:22:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:22:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:23:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:23:09] 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 `created_at` desc [2024-04-04 05:23:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:23:09] 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 `created_at` desc [2024-04-04 05:23:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:23:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:23: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-04 05:23:25] 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 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:23:30] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:23:30] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:23:30] 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 `created_at` desc [2024-04-04 05:23: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":"jerry@gmail.com","name":"jerry@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 jerry@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 05:23:54] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.876703b0-f243-11ee-b186-525400f92481.18ea790476b","object":"email"} [2024-04-04 05:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:24:06] 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 `created_at` desc [2024-04-04 05:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:24:06] 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 `created_at` desc [2024-04-04 05:35:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:35:46] 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 `created_at` desc [2024-04-04 05:35:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:35:46] 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 `created_at` desc [2024-04-04 05:39:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 05:39:40] 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 `created_at` desc [2024-04-04 05:39:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 05:39:40] 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 `created_at` desc [2024-04-04 05:44: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 05:44:26] 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 `created_at` desc [2024-04-04 05:44: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 05:44:26] 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 `created_at` desc [2024-04-04 05:44: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 05:44:26] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:44:56] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:44:56] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:44:56] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:44:56] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:44:56] 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 `created_at` desc [2024-04-04 05: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 05:44:56] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:46:50] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 05:46:50] 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 `created_at` desc [2024-04-04 05: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` = ?) or (`reward_settings`.`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 05:46:50] 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 `created_at` desc [2024-04-04 06:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 06:04:25] 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 `created_at` desc [2024-04-04 06:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 06:04:25] 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 `created_at` desc [2024-04-04 06:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 06:04:28] 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 `created_at` desc [2024-04-04 06:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 06:04:28] 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 `created_at` desc [2024-04-04 06:04:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 06:04:30] 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 `created_at` desc [2024-04-04 06:04:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 06:04:30] 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 `created_at` desc [2024-04-04 06:11: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 06:11: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 06:11:09] 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 `created_at` desc [2024-04-04 06:11:09] 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 `created_at` desc [2024-04-04 06:11: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 06:11: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 06:11:09] 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 `created_at` desc [2024-04-04 06:11: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 06:11:09] 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 `created_at` desc [2024-04-04 06:11: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 06:11:09] 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 `created_at` desc [2024-04-04 06:11:09] 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 `created_at` desc [2024-04-04 06:12: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 06:12:20] 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 `created_at` desc [2024-04-04 06:12: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 06:12:20] 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 `created_at` desc [2024-04-04 06:12: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 06:12:20] 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 `created_at` desc [2024-04-04 06: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-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 06: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-04 06: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-04 06:15: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-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 06:15: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-04 06:15: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-04 06:16: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-04 06: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`.`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 06: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`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 06: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`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 06:16: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-04 06: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-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 06: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-04 06: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-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:16:48] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:16:48] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:16:48] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:16:48] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:16:48] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:16:48] 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 `created_at` desc [2024-04-04 06:17: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 06:17:56] 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 `created_at` desc [2024-04-04 06:17: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 06:17:56] 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 `created_at` desc [2024-04-04 06:17: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 06:17:56] 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 `created_at` desc [2024-04-04 06:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 06:33:57] 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 `created_at` desc [2024-04-04 06:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' 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-04 06:33:57] 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 `created_at` desc [2024-04-04 06:34:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 06:34:02] 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 `created_at` desc [2024-04-04 06:34:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:34:02] 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 `created_at` desc [2024-04-04 06:40:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 06:40:43] 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 `created_at` desc [2024-04-04 06:40:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:40:43] 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 `created_at` desc [2024-04-04 06:40: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-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 06:40: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-04 06:40: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-04 06:40: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:40:58] 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 `created_at` desc [2024-04-04 06:40: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:40:58] 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 `created_at` desc [2024-04-04 06:40: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:40:58] 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 `created_at` desc [2024-04-04 06:41: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`.`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 06:41:30] 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 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:41:30] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:41:30] 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 `created_at` desc [2024-04-04 06: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 06:41:30] 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 `created_at` desc [2024-04-04 06:42: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-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 06:42: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-04 06:42: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-04 06:42: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-04 06:42: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 5 [2024-04-04 06:42: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":"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> task without image<\\/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 06:42:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.885dbec0-f24e-11ee-b145-5254004d4100.18ea7d864ac","object":"email"} [2024-04-04 06:42: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`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 06:42: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 `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-04 06:42: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 06:42:44] 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 `created_at` desc [2024-04-04 06:42: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 06:42:44] 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 `created_at` desc [2024-04-04 06:42: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 06:42:44] 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 `created_at` desc [2024-04-04 06:42: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-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 06:42: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-04 06:42: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-04 06:42: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-04 06:42: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-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 06:42: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-04 06:42: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-04 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-04 07:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:14:21] 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 `created_at` desc [2024-04-04 07:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:14:21] 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 `created_at` desc [2024-04-04 07:15: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:15:30] 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 `created_at` desc [2024-04-04 07:15: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:15:30] 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 `created_at` desc [2024-04-04 07:15: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:15:30] 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 `created_at` desc [2024-04-04 07:15: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:15:30] 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 `created_at` desc [2024-04-04 07:15: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:15:30] 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 `created_at` desc [2024-04-04 07:15: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:15:30] 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 `created_at` desc [2024-04-04 07:15:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:15:40] 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 `created_at` desc [2024-04-04 07:15:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:15:40] 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 `created_at` desc [2024-04-04 07:15:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 07:15:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 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`.`group_id` = ? and `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 07: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":"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 \\"default image\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: default image<\\/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 07:16:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.33cc04c0-f253-11ee-833a-525400103106.18ea7f6ff0c","object":"email"} [2024-04-04 07:16:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:16:21] 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 `created_at` desc [2024-04-04 07:16:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:16:21] 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 `created_at` desc [2024-04-04 07:19: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 07:19:05] 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 `created_at` desc [2024-04-04 07:19: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 07:19:05] 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 `created_at` desc [2024-04-04 07:19: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 07:19:05] 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 `created_at` desc [2024-04-04 07:24:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:24: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-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 07:24: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-04' 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-04 07:24: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-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 07:24: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-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 07: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-04 07:24:27] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:24: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-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 07:24: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-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 07:24:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24: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-04 07:24:30] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:24:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? 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 07:24:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24: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-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 07:24: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-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 07:24:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24: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-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 07:24: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-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 07:24: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-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 07:24: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-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 07:24:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24: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-04 07:24:47] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:24: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-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 07:24: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-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 07:24:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:24: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-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 07:24: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-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 07:24: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-04 07:24:55] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:24:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:24:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:25:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:25:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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-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 07: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-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 07:25: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 07:25: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 07:25: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-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 07:25: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-04' 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-04 07:25: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-04 07:25:16] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:30:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:30:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31: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-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 07:31: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-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 07:31: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 07:31:31] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:31:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:31: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-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 07:31: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-04' 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-04 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:32: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-04 07:32:03] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:34:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:34:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:36:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:36:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:37:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:37:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:37:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:37:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:37: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-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 07:37: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-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 07: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` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `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 07:37:49] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:37: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-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 07:37: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-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 07:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:37:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:37:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:38:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:38:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:38:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:38:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:39:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:39:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:39:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:39:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:39: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-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 07:39: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-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 07:39:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:39:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:39:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:39:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:44: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-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 07:44: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-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 07:44: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-04 07:44:48] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:44: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-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 07:44: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-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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 12 [2024-04-04 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:45: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-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 07:45: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-04' 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-04 07:45: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-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 07:45: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-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 07:45: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 07:45: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`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 07:45: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-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 07:45: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-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 07: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-04 07:45:17] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07: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-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 07: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-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 07:45: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-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 07:45: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-04' 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-04 07:45:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:45:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:45: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-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 07:45: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-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 07:45: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-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 07:45: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-04' 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-04 07:45: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-04 07:45:40] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:55:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:55:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:55:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:55:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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-04 07:55:59] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 07:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:56:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:56:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:56:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:56:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:56:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:56:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:56: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-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 07:56: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-04' 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-04 07:57:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:57:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:57:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:57:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07:57: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-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 07:57: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-04' 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-04 07:57: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-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 07:57: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-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 07:57: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-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 07:57: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-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 07:57: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-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 07:57: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-04' 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-04 07: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-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 07: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-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 07:58:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:58:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 07:58: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-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 07:58: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-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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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 07: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` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) 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`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 07:59:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where `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 07:59:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` inner join `store_product` on `store_product`.`product_id` = `products`.`product_id` and `store_product`.`store_id` = ? where (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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 08: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`.`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 08:03:08] 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 `created_at` desc [2024-04-04 08: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`.`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 08:03:08] 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 `created_at` desc [2024-04-04 08: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`.`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 08:03:08] 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 `created_at` desc [2024-04-04 08:03: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-03' or `products`.`expires_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 08:03:39] 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 `created_at` desc [2024-04-04 08:03: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 08:03:42] 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 `created_at` desc [2024-04-04 08:03: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 08:03:42] 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 `created_at` desc [2024-04-04 08:03: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 08:03:42] 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 `created_at` desc [2024-04-04 08:03: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`.`expires_on` > '2024-04-03' or `products`.`expires_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 08:03:44] 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 `created_at` desc [2024-04-04 08:03: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`.`expires_on` > '2024-04-03' or `products`.`expires_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 08:03:45] 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 `created_at` desc [2024-04-04 08:03: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`.`expires_on` > '2024-04-03' or `products`.`expires_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 08:03:46] 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 `created_at` desc [2024-04-04 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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-03' or `products`.`expires_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 08:03:49] 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 `created_at` desc [2024-04-04 08:03: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-04 08:03:51] 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 08: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` = ?) 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 08:03:54] 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 `created_at` desc [2024-04-04 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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 08:03:58] 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 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_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 08:04:02] 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 08:04: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-04 08:04:12] 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 08:07: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":"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 08:07:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7210b4e0-f25a-11ee-b145-5254004d4100.18ea826772e","object":"email"} [2024-04-04 08:08: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 08:08:01] 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 `created_at` desc [2024-04-04 08:08: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 08:08:01] 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 `created_at` desc [2024-04-04 08:08: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 08:08:01] 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 `created_at` desc [2024-04-04 08:10: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":"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 08:10:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.bdb10ee0-f25a-11ee-9de0-52540064429e.18ea82866ce","object":"email"} [2024-04-04 08:15: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":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@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 kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/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-04 08:15:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8830cf70-f25b-11ee-a9f9-525400d6cd4f.18ea82d95e7","object":"email"} [2024-04-04 08:17: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":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@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 kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/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-04 08:17:18] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c0d40450-f25b-11ee-833a-525400103106.18ea82f0915","object":"email"} [2024-04-04 08:17:28] 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-04 08:17:57] 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-04 08:22: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":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@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 kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"tempgroup112\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: tempgroup112<\\/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-04 08:22:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7a9c22f0-f25c-11ee-b186-525400f92481.18ea833ca9f","object":"email"} [2024-04-04 08:23: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":"kartik.g.dweb@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 kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"tempgroup112\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: tempgroup112<\\/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 08:23:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.95f8d610-f25c-11ee-a9f9-525400d6cd4f.18ea8347df1","object":"email"} [2024-04-04 08:23: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 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 kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"tempgroup112\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: tempgroup112<\\/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-04 08:23:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.983335b0-f25c-11ee-a94c-525400d4bb1c.18ea8348c8b","object":"email"} [2024-04-04 08:28: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":"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 08:28:02] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4094adb0-f25d-11ee-9151-5254000b1a0e.18ea838dc0b","object":"email"} [2024-04-04 08:28: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":"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 08:28:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5aa13a20-f25d-11ee-aa7b-525400ae9113.18ea83986c2","object":"email"} [2024-04-04 08:29:16] 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 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 kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"tempgroup112\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: tempgroup112<\\/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-04 08:29:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6ce45e10-f25d-11ee-b145-5254004d4100.18ea839fe71","object":"email"} [2024-04-04 08:29: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":"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 08:29:33] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.76cb9d80-f25d-11ee-a9f9-525400d6cd4f.18ea83a3f58","object":"email"} [2024-04-04 08:40: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 08:40:27] 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 `created_at` desc [2024-04-04 08:40: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 08:40:27] 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 `created_at` desc [2024-04-04 08:40: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-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 08:40:27] 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 `created_at` desc [2024-04-04 08:40: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-04 08:41:09] local.DEBUG: Product Image Details: Array ( [product_id] => 200 [image_name] => 13335069571712220069.png ) [2024-04-04 08:41:09] 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 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 08:41:09] 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 `created_at` desc [2024-04-04 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 08:41:09] 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 `created_at` desc [2024-04-04 08: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 (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`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 08:41:09] 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 `created_at` desc [2024-04-04 08:41: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-04 08:41:14] 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 08: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` = ?) or (`reward_settings`.`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 08:41:22] 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 `created_at` desc [2024-04-04 08: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` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `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 08:41:22] 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 `created_at` desc [2024-04-04 08: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` = ?) or (`reward_settings`.`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 08:41:22] 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 `created_at` desc [2024-04-04 09: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-03' or `products`.`expires_on` 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:06:41] 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 `created_at` desc [2024-04-04 09: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-03' or `products`.`expires_on` 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:06:41] 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 `created_at` desc [2024-04-04 09: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-03' or `products`.`expires_on` 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:06:41] 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 `created_at` desc [2024-04-04 09:07: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`.`expires_on` > '2024-04-03' or `products`.`expires_on` 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:07:25] 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 `created_at` desc [2024-04-04 09:07: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`.`expires_on` > '2024-04-03' or `products`.`expires_on` 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:07:25] 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 `created_at` desc [2024-04-04 09:07: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 09:07:42] 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 `created_at` desc [2024-04-04 09:07: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 09:07:42] 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 `created_at` desc [2024-04-04 09:07: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 09:07:42] 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 `created_at` desc [2024-04-04 09: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`.`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:08:44] 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:09: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-03' or `products`.`expires_on` 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:09:17] 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 `created_at` desc [2024-04-04 09:09: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-03' or `products`.`expires_on` 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:09:17] 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 `created_at` desc [2024-04-04 09:09: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-03' or `products`.`expires_on` 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:09:17] 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 `created_at` desc [2024-04-04 09: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`.`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:09:53] 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 `created_at` desc [2024-04-04 09: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`.`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:09:53] 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 `created_at` desc [2024-04-04 09: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`.`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:09:53] 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 `created_at` desc [2024-04-04 09:10: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 09:10:01] 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 `created_at` desc [2024-04-04 09:10: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 09:10:01] 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 `created_at` desc [2024-04-04 09:10: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 09:10:01] 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 `created_at` desc [2024-04-04 09:10: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 09:10:31] 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 `created_at` desc [2024-04-04 09:10: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 09:10:31] 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 `created_at` desc [2024-04-04 09:10: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-04 09:10:40] 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:11: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:11:00] 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 `created_at` desc [2024-04-04 09:11: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:11:00] 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 `created_at` desc [2024-04-04 09: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`.`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:11:03] 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:11: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-03' or `products`.`expires_on` 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:11:05] 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 `created_at` desc [2024-04-04 09:11: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-03' or `products`.`expires_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:11:05] 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 `created_at` desc [2024-04-04 09:18: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-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:18: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-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: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 (?, ?)) 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:18:23] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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:18:23] 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 `created_at` desc [2024-04-04 09: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`.`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:18:32] 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: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` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `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:19: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-03' or `products`.`expires_on` 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:19:52] 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 `created_at` desc [2024-04-04 09:19: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-03' or `products`.`expires_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:19:52] 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 `created_at` desc [2024-04-04 09:21: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-03' or `products`.`expires_on` 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:21:46] 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 `created_at` desc [2024-04-04 09:21: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-03' or `products`.`expires_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:21: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 `created_at` desc [2024-04-04 09:21: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-04 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`.`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: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 (?, ?)) 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:21:50] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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:21:50] 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 `created_at` desc [2024-04-04 09: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`.`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:21:52] 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:21: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 09:21:53] 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 `created_at` desc [2024-04-04 09:21: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 09:21:53] 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 `created_at` desc [2024-04-04 09:21: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-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:21: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-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:22: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:22:06] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09: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 (?, ?)) and `products`.`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:22:09] 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: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 (?, ?) 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:22:29] 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 `created_at` desc [2024-04-04 09: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 (?, ?) 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 09:22:29] 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 `created_at` desc [2024-04-04 09: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-03' or `products`.`expires_on` 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:23:06] 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 `created_at` desc [2024-04-04 09: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`.`expires_on` > '2024-04-03' or `products`.`expires_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:23:06] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) 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:23:11] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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:23:11] 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 `created_at` desc [2024-04-04 09:23: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":"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 09:23:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.068c9800-f265-11ee-b186-525400f92481.18ea86bcd80","object":"email"} [2024-04-04 09: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 (?, ?) 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:23:46] 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 `created_at` desc [2024-04-04 09: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 (?, ?) 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 09:23:46] 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 `created_at` desc [2024-04-04 09:23: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 09:23:56] 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 `created_at` desc [2024-04-04 09:23: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 09:23:56] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) 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:24:27] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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:24:27] 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 `created_at` desc [2024-04-04 09:24: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-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:24: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-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:24: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 09:24:31] 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 `created_at` desc [2024-04-04 09:24: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 09:24:31] 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 `created_at` desc [2024-04-04 09:24: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:24:32] 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:24: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 09:24:39] 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 `created_at` desc [2024-04-04 09:24: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 09:24:39] 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 `created_at` desc [2024-04-04 09:24: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_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:24:52] 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:25: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:25:00] 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 `created_at` desc [2024-04-04 09:25: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:25:00] 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 `created_at` desc [2024-04-04 09:25: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-03' or `products`.`expires_on` 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:25:07] 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 `created_at` desc [2024-04-04 09:25: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-03' or `products`.`expires_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:25:07] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) 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:25:34] 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 `created_at` desc [2024-04-04 09: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 (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_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:25:34] 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 `created_at` desc [2024-04-04 09:25:51] 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 09:25:51] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.545465e0-f265-11ee-a834-525400fa05f6.18ea86dcb3e","object":"email"} [2024-04-04 09:25: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-03' or `products`.`expires_on` 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:25:55] 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 `created_at` desc [2024-04-04 09:25: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-03' or `products`.`expires_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:25:55] 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 `created_at` desc [2024-04-04 09:25: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:25:59] 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 `created_at` desc [2024-04-04 09:25: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:25:59] 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 `created_at` desc [2024-04-04 09:28: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-03' or `products`.`expires_on` 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:28:11] 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 `created_at` desc [2024-04-04 09:28: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-03' or `products`.`expires_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:28:11] 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 `created_at` desc