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 (18172,18894,18042,17351,10402,44671,4686,44858,18446,8753,5993,17278,4765,18301,45516,3883,44531,13922,44687,44669,44878,17335,6609,18719,44861,45346,13425,18286,19078,39676,24412,44745,44766,44849,18652,45051,44873,44865,45515,17981,19057,44835,44640,44762,44837,44884,24411,30135,45262,44764,17755,17492,3,44845,17771,9341,18237,44768,18981,44856,17904,17237,24441,44689,37057,17092,6862,45421,17527,44866)
Unknown column 'np.person' in 'where clause'