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 (44845,4765,45043,45072,5388,17835,18650,36472,44711,44766,44835,44764,13,18286,19057,44687,22509,44858,17703,45515,44873,45516,44640,44861,5410,18279,44762,44689,30135,18719,45051,39676,18301,45277,45042,4686,44865,17009,44531,6609,18185,17335,32454,17771,17848,18572,44867,18237,44855,3883,18430,44674,18981,44868,13425,44875,5993,30963,45561,18172,45177,44856,18996,44837,17839,17092,17114,44866,13988,44854)
Unknown column 'np.person' in 'where clause'