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 (44863,44875,18894,45072,18353,44745,44739,45518,17237,17756,45515,45561,44669,44711,44878,37267,44762,44868,45286,28530,17351,18794,5259,44685,44767,17556,4765,45229,44766,6862,44689,18185,14622,30986,16935,44884,17835,13922,18572,45042,32454,24411,17771,44640,34194,24412,24438,6609,13,18652,44674,17839,18301,44861,45346,17278,18648,44853,17703,17657,9341,44845,44851,18446,44873,17904,44849,17335,45180,8753)
Unknown column 'np.person' in 'where clause'