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 (17601,22509,44849,45177,6862,17092,44868,44687,44671,37057,17771,30986,28530,30963,44764,45072,43800,45346,44894,44854,17237,45042,44640,4765,44685,45051,13988,19078,9341,14622,18279,10402,44858,24411,44855,44837,6782,18430,44866,17492,17351,34194,17527,44767,17335,44878,4686,44884,17835,8753,17756,45229,44873,3,18900,44765,16935,44835,13425,44689,3883,17981,18042,13,17703,18237,44745,5993,18894,6875)
Unknown column 'np.person' in 'where clause'