SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
AND subs.is_hide_ratings = 0
AND subs.is_hidden = 0
AND subs.cl' at line 26 at /var/www/html/_lib/ratings_show.class.php line 504
Array
(
[code] => 1064
[message] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
AND subs.is_hide_ratings = 0
AND subs.is_hidden = 0
AND subs.cl' at line 26
[query] => SELECT DISTINCT
cache.total_profit,
cache.turnover,
cache.picks_made,
cache.avg_stake,
cache.dropdown,
cache.ratio,
cache.by_sports,
cache.by_types,
cache.by_books,
subs.sub_name,
subs.sub_ticker,
subs.sub_sport,
subs.sub_type,
subs.sub_id,
subs.has_periods,
subs.is_live,
subs.sub_sales_policy,
subs.sub_id AS ARRAY_KEY
FROM
bs_subs as subs,
bs_subs_cache_ratings as cache
WHERE 1
AND subs.sub_id = cache.sub_id
AND cache.period = 'all'
AND subs.sub_id IN ()
AND subs.is_hide_ratings = 0
AND subs.is_hidden = 0
AND subs.closed = 0
AND subs.picks_made_30d >= '3'
AND subs.sub_type = 'L'
ORDER BY
cache.total_profit DESC
LIMIT
0, 10000
[context] => /var/www/html/_lib/ratings_show.class.php line 504
)