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 '/* ORDER BY RAND() DESC /* LIMIT 3' at line 1
SELECT * FROM wp_posts WHERE post_status='publish' && ID IN (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN (SELECT term_taxonomy_id FROM wp_term_taxonomy WHERE term_id='38')) /* ORDER BY RAND() DESC /* LIMIT 3