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 (18894,44674,18427,45180,18996,44671,18572,45042,44685,44851,44873,44855,14622,18185,44868,18650,44837,13425,18446,34194,17835,39676,44856,44867,18688,18172,30963,17278,45043,13988,18794,30986,13,5388,17839,44866,44875,45277,28313,4686,18900,18042,45346,44739,44854,45515,44775,24412,44858,44836,44669,44768,44687,44835,44849,17703,17492,45567,17755,44640,17092,16935,44865,18237,17904,14402,44767,45518,44848,17981)
Unknown column 'np.person' in 'where clause'