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 (44531,44848,44866,18185,44640,30986,24412,44851,44878,24411,6875,18794,44739,18900,44835,18301,24441,5259,17835,45421,44764,17492,17351,44873,14622,37267,18719,44711,45177,45516,19078,44669,44854,18430,17335,45515,44853,45262,44855,5410,44863,30135,45517,18427,17009,17755,19057,17848,45051,44685,44671,28530,3,17237,17601,44674,5388,45229,18042,44766,18652,44894,44837,13988,9341,44687,17756,24438,45286,16935)
Unknown column 'np.person' in 'where clause'