Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (24441,18301,30986,44835,16935,5388,44866,18688,44762,45042,17527,45072,18427,44775,17237,45567,44768,44685,44867,45421,44855,8753,9341,44851,17601,44853,19057,45515,45180,4686,44884,14402,31354,13,18353,37057,44869,4765,44875,6782,44858,13425,44674,17278,44836,44865,44767,44739,18430,44849,44868,44854,44863,19078,3883,34194,44640,17351,44845,44894,17492,45346,18446,44870,13922,18719,24411,6875,18981,14622)
Unknown column 'np.person' in 'where clause'