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 (44835,18237,18042,44865,44873,28530,44687,44711,17492,16935,18446,44867,44894,17114,44765,44739,44849,19078,44762,45262,45180,17009,36472,44856,44768,3883,17335,13922,18900,44845,44861,18996,9341,24412,45421,30963,18572,18427,18430,17703,14402,45516,44766,13988,45177,28313,44878,18286,37267,18652,17601,44689,6862,45072,5388,17237,5410,34194,4765,8753,45515,17835,44674,14622,16885,44875,44848,18185,17848,18279)
Unknown column 'np.person' in 'where clause'