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 (45229,22509,18301,17601,44762,44689,45346,3,44884,30986,44851,18650,44767,44835,44875,17657,14622,44837,45286,31354,44845,18894,44854,17755,44669,18427,44858,44867,44873,18353,18794,17556,44861,45072,44766,17492,5259,17756,44878,18648,45567,18446,24441,24438,45051,9341,13425,18286,18185,43800,44856,44739,19057,18652,17904,17009,18279,17335,45180,18719,6875,44671,28530,17981,44855,37057,44868,18688,17278,13)
Unknown column 'np.person' in 'where clause'