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 (44685,44837,44856,5259,4765,44767,44868,45177,44835,17981,4686,44873,45516,18172,30135,5388,18185,30986,9341,37267,44739,17556,13922,17492,45229,45262,44861,17351,6862,44848,16885,44836,44863,44762,44689,44671,6782,39676,18981,18430,18650,5410,18688,44884,14402,19078,18279,45567,44640,24441,44878,17092,18719,24438,45518,44894,18446,45072,24412,18042,44711,18996,17839,44687,44851,18286,17237,44854,45051,17703)
Unknown column 'np.person' in 'where clause'