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 (36472,13922,44884,43800,44669,44854,44858,44873,45042,17351,28313,44867,44531,44837,3,18794,44685,30986,37267,17755,17601,17703,17981,17556,18185,10402,9341,24411,18652,45346,44775,45177,44845,44767,44853,44835,5410,17278,45229,19078,18996,44687,13425,17839,45567,13,17335,44851,44849,18981,17527,44836,45180,28530,16935,18279,44855,5993,44894,44762,45262,14622,17009,18237,44640,44689,30963,24412,18301,17904)
Unknown column 'np.person' in 'where clause'