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 (45346,44868,14622,18286,24438,17351,45042,17835,17527,5410,44766,44856,44873,13425,18172,44870,3,44835,18427,17092,4765,18996,24441,17492,18572,44764,45072,19078,17771,18981,30986,45229,17657,17904,45515,17848,30135,44854,45286,18648,5259,44745,17009,44762,44855,19057,44687,17981,30963,44867,24411,5993,44767,44853,44849,34194,44836,17237,16885,28313,24412,31354,44775,18894,44768,44848,45516,18652,18301,6782)
Unknown column 'np.person' in 'where clause'