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,13922,44873,44845,44894,44866,14402,44711,5993,44767,45567,44685,44851,17756,6609,44674,45042,45346,44768,17492,31354,18185,44739,18572,44858,45072,18894,45286,17904,44766,44865,45180,18446,44531,17335,44849,44875,10402,45421,18981,5388,22509,24438,13988,18996,17771,44669,44764,17092,17755,17835,44878,19078,17278,34194,44848,45262,18650,37057,44687,45277,6875,44835,24441,30986,8753,44868,44863,18301,16885)
Unknown column 'np.person' in 'where clause'