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 (44836,45262,44851,30135,13,17351,34194,4686,44870,14622,18279,44866,17981,44867,22509,18042,18894,44711,17335,6782,5993,17092,44845,19057,44767,44762,30986,6609,24412,44868,18286,18688,9341,45180,18446,17527,44854,45072,18237,44875,18650,44856,17492,17009,45042,44685,17756,6875,17703,17771,44863,18185,45515,18427,44861,18353,45516,44687,44764,44873,14402,17839,18301,18648,45421,6862,44878,16935,45229,44849)
Unknown column 'np.person' in 'where clause'