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 (44745,45518,9341,44775,17601,44531,18981,44867,30135,18430,44767,44865,5388,14622,17492,18894,18042,5410,18279,44685,6862,17904,44689,18794,44868,17335,44884,45346,44762,5259,18301,44640,5993,13425,22509,18185,18688,44875,44845,44837,17351,3,44856,6609,19057,34194,44739,4765,17092,44835,17556,44853,16885,44873,18719,3883,45043,14402,30986,44849,24412,45180,6782,18172,28530,45229,17009,13,45072,17527)
Unknown column 'np.person' in 'where clause'