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 (44836,44861,30986,4686,5259,18650,44764,44762,17114,44745,32454,18900,18430,18894,44640,45177,44765,44873,18996,45517,34194,44884,45072,44869,18794,17492,18185,44855,17755,44878,45051,44851,44685,37057,44775,45277,44875,3,6782,30135,44671,24438,18427,19057,5993,44531,6875,18301,17278,13,44766,45346,31354,44858,18652,44865,24441,44868,13922,17092,45180,45042,18446,44853,45518,17904,18688,17839,4765,18279)
Unknown column 'np.person' in 'where clause'