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 (18648,45517,44766,16885,44745,45043,32454,36472,5410,17981,44865,14622,44767,17657,18572,44866,44849,44867,18900,44640,45072,5259,8753,18353,18446,44685,44878,18719,37267,18427,9341,18894,18650,18652,45042,44835,6782,18794,17278,44868,44768,44762,45229,24412,45180,44671,18301,22509,5993,17904,30986,17756,45177,17755,44858,17835,16935,17848,17237,13922,44873,37057,43800,44854,6862,3,10402,44687,44875,3883)
Unknown column 'np.person' in 'where clause'