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 (37057,17657,18648,44689,6782,18237,44856,17335,19078,18430,34194,17492,19057,24438,17278,44739,28530,10402,44837,18185,18353,44835,45177,17904,17351,18996,18572,44865,32454,17009,44685,18894,17981,44762,45516,45262,45229,44873,44845,45277,44711,24441,45180,18652,18286,18301,44765,17771,44851,18688,13922,44854,44855,3883,44764,17114,18900,44640,22509,30963,14402,3,14622,8753,17703,44669,28313,44766,17755,44868)
Unknown column 'np.person' in 'where clause'