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 (44764,17335,17278,18286,18279,16885,6782,44868,17835,44894,45180,44855,13425,39676,18688,44669,28313,24438,3,44739,44845,44875,45042,44866,19078,45051,18237,17492,45229,45567,17009,45561,17114,28530,13922,44674,18996,17848,44685,18353,45518,44878,14622,17904,44671,22509,17657,44836,44884,5410,18042,24441,44765,17237,17981,37267,5259,44865,45177,18185,18794,44849,18430,17703,44848,45262,44867,44775,44689,44531)
Unknown column 'np.person' in 'where clause'