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 (4686,44837,19078,19057,17092,44861,44845,44685,17492,5993,44766,18996,37267,17904,44775,18301,10402,17351,18446,30986,18427,44687,44873,5388,18286,17981,17756,44689,18185,44531,24438,18279,24412,18719,17839,45229,6862,44848,6875,45517,44764,45177,44866,17527,45567,17657,14622,43800,18650,44835,17703,18042,34194,17601,44739,17848,30135,36472,44868,18652,30963,24441,44765,44711,17009,13988,18900,44849,45043,22509)
Unknown column 'np.person' in 'where clause'