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 (18042,13,17839,22509,18353,44685,18650,17848,44531,44762,44669,17335,18981,17237,17703,13425,45567,45561,45042,6609,44837,44853,44848,37267,17556,19057,45262,44711,45517,44767,5259,4765,45180,36472,3,17492,45421,17278,45346,18301,44869,45072,45043,6782,44845,17009,45515,4686,18996,44671,9341,44867,17527,44745,18894,43800,34194,24438,18185,44855,45286,17114,44835,5388,44687,18446,44739,44856,44873,18279)
Unknown column 'np.person' in 'where clause'