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 (44875,44873,45042,3,44884,44878,45286,5259,44836,17114,44868,45229,17237,18427,43800,17527,44739,44865,18894,44775,45072,44764,45567,44837,18650,17835,45515,31354,44689,17278,45516,44835,3883,24412,4765,24411,17848,14622,17703,44870,17556,17601,18446,44745,44687,44849,44845,18996,14402,18301,44848,16885,44851,44768,18237,18572,44861,36472,44854,17771,44869,17335,17756,45177,37267,18279,44856,45180,18652,44674)
Unknown column 'np.person' in 'where clause'