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 (44884,16885,18894,17771,43800,5993,44851,44671,18981,18301,45517,18650,18794,44689,17756,44775,4686,44711,24438,44531,30135,44894,44873,28530,44867,17114,18279,18900,44768,9341,45051,44865,13,44766,44835,45043,18185,45421,17237,6862,39676,44868,24411,45072,45262,17755,34194,44878,10402,44762,6875,45177,44848,30963,45277,37057,17492,44875,32454,14622,44767,6609,44685,18652,18237,17981,17904,19057,13922,44739)
Unknown column 'np.person' in 'where clause'