Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND 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'