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 (18279,45277,28530,32454,18301,19078,44836,44884,44766,44685,45346,18794,17703,3,14622,17755,45042,44775,37267,44764,17657,18185,45072,44845,18237,45286,18572,18894,18900,13988,24411,6875,44745,36472,18650,17492,4686,37057,31354,17771,17601,45180,17835,18996,44853,18652,4765,17527,44858,17981,44687,44762,18688,44865,44767,44878,44868,24412,22509,44835,18042,17756,45051,44640,44867,44875,18430,9341,6782,44849)
Unknown column 'np.person' in 'where clause'