(string)
SELECT ft.topic_id, ft.user_id, ft.title, ft.slug, ft.content, ft.sticky,
ft.total_views, ft.total_replies, ft.total_subscribers, ft.add_time, ft.closed,
f.forum_id, f.title as forum_title, f.slug as forum_slug,
f.access, f.perms, c.access AS cat_access, c.perms AS cat_perms,
f.cat_id, u.username, u.gender, u.avatar, u.online, us.posts, up.signature
FROM XPHD_forum_topics AS ft
INNER JOIN XPHD_forum AS f ON (f.forum_id = ft.forum_id AND f.status = 1)
INNER JOIN XPHD_forum_categories AS c ON (c.cat_id = f.cat_id AND c.status = 1)
LEFT JOIN XPHD_user AS u ON (u.user_id = ft.user_id AND u.status = 1)
LEFT JOIN XPHD_user_stats AS us ON (us.user_id = u.user_id)
LEFT JOIN XPHD_user_profile AS up ON (up.user_id = u.user_id)
WHERE ft.topic_id = ?
AND ft.status = 1
(string)
SELECT ft.topic_id, ft.user_id, ft.title, ft.slug, ft.content, ft.sticky,
ft.total_views, ft.total_replies, ft.total_subscribers, ft.add_time, ft.closed,
f.forum_id, f.title as forum_title, f.slug as forum_slug,
f.access, f.perms, c.access AS cat_access, c.perms AS cat_perms,
f.cat_id, u.username, u.gender, u.avatar, u.online, us.posts, up.signature
FROM XPHD_forum_topics AS ft
INNER JOIN XPHD_forum AS f ON (f.forum_id = ft.forum_id AND f.status = 1)
INNER JOIN XPHD_forum_categories AS c ON (c.cat_id = f.cat_id AND c.status = 1)
LEFT JOIN XPHD_user AS u ON (u.user_id = ft.user_id AND u.status = 1)
LEFT JOIN XPHD_user_stats AS us ON (us.user_id = u.user_id)
LEFT JOIN XPHD_user_profile AS up ON (up.user_id = u.user_id)
WHERE ft.topic_id = ?
AND ft.status = 1
MySQLi query has prepared entries, but no types or variables specified!