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 (5259,44835,17335,18427,44870,44863,45517,28530,45262,44868,19057,17756,14622,19078,44878,6609,44674,13988,17492,17755,44640,17771,45286,17703,44854,44762,17904,45561,44875,45229,45177,18353,18996,17657,45043,44766,18900,5388,45072,18652,45567,17009,44848,5993,4765,24412,44873,30135,44765,18981,18279,6782,44836,17092,22509,44531,44687,30963,18286,17839,45421,44884,17237,45051,18301,6862,44853,4686,44685,9341)
Unknown column 'np.person' in 'where clause'