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 (44765,9341,3883,44845,24411,18172,17237,18572,44851,45262,44849,14622,44856,18996,18353,18900,18279,17278,17527,45515,45072,18648,6862,17848,45051,18446,44837,5993,45516,28313,44669,44863,45517,5259,4765,44854,17556,18981,44766,44853,44867,30963,17114,45277,6782,17981,18286,45286,45043,44689,18719,6875,18894,18688,5388,13,5410,17657,44768,45518,44855,44640,16935,44739,44878,18652,30135,18650,18042,32454)
Unknown column 'np.person' in 'where clause'