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 (44640,24412,44674,30135,32454,28530,44861,44745,45072,18430,5410,45177,17092,17527,44836,17601,17703,17492,44878,44671,18794,17755,45286,44856,44764,16935,45421,18353,45567,45515,45277,45517,24411,17114,18688,44687,6609,24441,45561,44762,34194,44768,18650,18185,18301,13425,44851,3883,44868,44870,30986,18894,17904,17351,5388,6782,44894,45180,44848,44866,13922,45042,37267,17771,17756,44845,18427,14402,18572,17237)
Unknown column 'np.person' in 'where clause'