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 (37057,45051,8753,3,17601,44854,45042,44669,17556,44875,22509,44768,44865,17657,44868,43800,17492,44689,17237,14622,45567,18042,18446,3883,37267,5388,18185,16935,4686,44853,24438,45043,44870,45180,17351,18650,18900,44531,30963,18301,9341,24411,44873,17527,44884,5259,44858,17981,18353,45518,45277,44765,18652,18286,18648,44878,18430,6862,24412,44849,18237,4765,18688,44775,45229,45177,45346,44640,18279,44745)
Unknown column 'np.person' in 'where clause'