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 (18650,18648,44873,45277,44762,5259,34194,10402,44863,45072,44767,18996,18286,4686,24412,18237,17755,17601,18172,44854,36472,44851,24411,17114,44531,4765,44855,43800,44849,44894,18042,30135,18427,6782,37267,28530,44836,44687,44868,13425,17703,17904,17092,9341,44858,45180,44768,45561,44745,44685,17527,45567,44875,6862,45229,14402,18719,17771,17835,45516,14622,30986,17335,18894,17009,16885,44739,44764,13922,44674)
Unknown column 'np.person' in 'where clause'