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 (18279,28313,44849,30135,45515,6782,44875,14402,44762,17904,17527,5410,44861,17556,17351,13988,45072,17114,16935,44685,18981,36472,44854,45346,44765,44868,44531,17657,44669,45567,44766,18427,24412,44764,43800,17335,18719,5993,44767,13425,39676,44858,8753,18894,30986,45180,17092,17237,44687,45516,18648,44865,18996,5388,44855,44689,44848,44851,18042,13922,18650,18900,37057,44873,45262,44853,18446,6875,44674,44768)
Unknown column 'np.person' in 'where clause'