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 (44855,18430,44861,17755,45561,18794,5410,44856,24441,36472,44863,18172,45277,44745,17771,8753,4686,17335,45043,45229,44671,13988,24411,13425,18572,9341,45517,17904,30135,44866,18353,24438,44878,17835,6782,18981,44687,44685,45515,44768,18996,44849,28530,44858,19057,44865,18185,17492,37057,44531,44837,19078,44845,44765,45042,5993,18237,24412,17237,45051,31354,44689,28313,17351,18652,18650,14622,18427,43800,44848)
Unknown column 'np.person' in 'where clause'