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 (44674,44837,9341,45567,44836,13922,44764,17114,17335,6609,6875,17092,44845,44861,44849,24441,18185,17527,37267,44767,18652,17981,4686,44685,43800,36472,3,44835,22509,45421,18996,17009,3883,44855,45517,19078,44669,17755,13988,18427,17351,34194,5993,44858,13425,45516,31354,10402,18353,16935,24438,6862,45180,6782,44671,44856,44762,13,18301,44863,18719,5388,44878,44689,17657,18042,44873,18650,44848,17703)
Unknown column 'np.person' in 'where clause'