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 (17492,44687,44671,17839,6609,24412,44685,18279,4686,44863,44768,18719,17703,18430,45561,44711,5993,30986,17278,44851,45180,44766,14402,17092,18688,3,19078,24441,5259,45277,13425,44837,45229,17755,45518,44836,6875,44878,3883,19057,44767,17904,18185,18652,44856,44640,17981,28313,6782,18427,5388,44745,17835,24438,13988,37057,44762,44866,44689,18648,18900,16935,44848,18650,30963,44854,18446,45517,44849,18996)
Unknown column 'np.person' in 'where clause'