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 (44884,44674,18301,9341,18353,44858,4765,44878,17335,36472,3,13425,17492,34194,45277,45229,17114,44775,30963,44531,18430,44835,45262,17556,18981,44836,32454,18894,44849,6875,44851,45043,18237,18688,44762,24411,3883,17755,44861,18446,18042,19057,17703,4686,5993,45346,44863,8753,17981,45515,44765,45072,17278,17237,18172,24438,45517,17904,44853,44854,44669,17835,5388,17351,6862,45567,18650,44685,18279,17527)
Unknown column 'np.person' in 'where clause'