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 SUBSTRING(categories_id,4,1) != "0") AS cat4,
(SELECT categorie..." at line 5
Query
SELECT
(SELECT categories_id FROM categories_description WHERE language_id = 11 AND categories_id = 000) AS cat1,
(SELECT categories_id FROM categories_description WHERE language_id = 11 AND categories_id = 00 AND SUBSTRING(categories_id,2,1) != "0") AS cat2,
(SELECT categories_id FROM categories_description WHERE language_id = 11 AND categories_id = 0 AND SUBSTRING(categories_id,3,1) != "0") AS cat3,
(SELECT categories_id FROM categories_description WHERE language_id = 11 AND categories_id = AND SUBSTRING(categories_id,4,1) != "0") AS cat4,
(SELECT categories_name FROM categories_description WHERE language_id = 11 AND categories_id = 000) AS cat1name,
(SELECT categories_name FROM categories_description WHERE language_id = 11 AND categories_id = 00 AND SUBSTRING(categories_id,2,1) != "0") AS cat2name,
(SELECT categories_name FROM categories_description WHERE language_id = 11 AND categories_id = 0 AND SUBSTRING(categories_id,3,1) != "0") AS cat3name,
(SELECT categories_name FROM categories_description WHERE language_id = 11 AND categories_id = AND SUBSTRING(categories_id,4,1) != "0") AS cat4name,
(SELECT url_text FROM commerce_seo_url_without_language WHERE categories_id = 000) AS cat1url,
(SELECT url_text FROM commerce_seo_url_without_language WHERE categories_id = 00 AND SUBSTRING(categories_id,2,1) != "0") AS cat2url,
(SELECT url_text FROM commerce_seo_url_without_language WHERE categories_id = 0 AND SUBSTRING(categories_id,3,1) != "0") AS cat3url,
(SELECT url_text FROM commerce_seo_url_without_language WHERE categories_id = AND SUBSTRING(categories_id,4,1) != "0") AS cat4url,
(SELECT wod_count_products FROM categories WHERE categories_id = 000) AS cat1cnt,
(SELECT wod_count_products FROM categories WHERE categories_id = 00 AND SUBSTRING(categories_id,2,1) != "0") AS cat2cnt,
(SELECT wod_count_products FROM categories WHERE categories_id = 0 AND SUBSTRING(categories_id,3,1) != "0") AS cat3cnt,
(SELECT wod_count_products FROM categories WHERE categories_id = AND SUBSTRING(categories_id,4,1) != "0") AS cat4cnt
A young college coed wh Ile walking home one late night comes across a beast of a man in the woods, who has lost all of his memory and has an undulating attraction to her. She takes him home and deci …
Jill invites her best friend Pauline over to meet the beast of a man that’s been pleasuring her for the last three days. But when Pauline tries to entice the beast herself, Jill gets a little territo …
I don’t believe in seconds chances, Especially when they come in the form of Tiffany. The moment I saw that tempting spitfire I knew I was in trouble. The way her petite little body called out to me, …
I’ve never been one to ignore a friend in need. And he’s my best friend. His family has been good to me my whole life. How can I turn him down when he and his family need me the most? I’ve known he …
Standing in a lobby full of people, bouncing auburn curls catch my eyes. As they slip through the crowd, green eyes peer out at me. My heart races, my body heats, and I can’t stop looking into those …
Hold on to something tight because these cowboys are going to take you on a wild ride that you will never forget! Three brothers and their father. Four lucky ladies. One hard to resist box set. These …
I’m the boss around here, a billionaire cowboy who doesn’t take orders from anyone. But this little filly—she’s got a way of getting under my skin. Her teasing drives me wild, and her innocence calls …
She strolled into town like a ghost from my past. My high school love, the one who tore me apart and ran. I own the ranch outside this place now, a billionaire cowboy with no time for games. She’s st …