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 (18237,44674,17703,34194,17904,5259,4686,18996,44858,45515,44878,44669,13,5410,44739,44868,45567,44766,44865,18572,45421,44687,30963,18286,44848,45042,44873,17114,44875,5388,18794,45180,13425,18688,44861,18430,9341,44866,5993,6609,22509,8753,37267,24438,45516,17527,37057,43800,17771,18900,17835,44856,44867,44762,32454,45051,18446,24441,44869,3,13988,4765,45072,18172,18894,36472,17009,44767,45229,28313)
Unknown column 'np.person' in 'where clause'