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 (24438,17092,44866,44685,13922,37267,30963,39676,44775,17755,18279,44739,45229,17657,19057,37057,18427,45042,6862,17527,10402,44767,6609,17703,18650,14622,45516,44861,18172,18042,44858,17601,17981,18688,18237,13988,18572,44689,44849,4686,44835,17756,44762,30135,3883,44868,28313,44764,17237,44768,45277,45180,44856,18430,44531,18894,18353,44845,45515,16935,14402,44878,17835,43800,18794,19078,44848,45286,6875,30986)
Unknown column 'np.person' in 'where clause'