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 (34194,45229,16935,43800,44765,18648,44711,37267,5388,44775,44884,8753,44854,44766,13922,18794,44866,18286,44836,22509,45567,17009,44878,45277,44845,6875,18719,36472,17703,18430,45516,45051,9341,13,18650,45517,44687,44685,44689,17657,17351,44861,44856,18279,18652,6609,19057,44849,44640,44764,5993,18981,30986,14622,44671,18353,45042,4765,44855,24412,44767,44851,45262,17904,14402,24411,6862,13425,18894,44669)
Unknown column 'np.person' in 'where clause'