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 (44762,44836,44875,44855,18237,30135,18894,44835,44873,44854,44878,44531,19057,34194,44739,44837,4686,45072,44853,17756,44849,39676,18301,44868,14622,18688,44869,36472,44851,17601,44768,18353,17237,45229,44765,18427,4765,44685,44689,44866,18900,43800,17835,44745,18446,45517,24441,19078,17335,44884,6609,13,24438,44861,45177,17771,44848,37267,13988,45515,5259,5993,6862,45042,44669,45043,17848,17981,44856,18042)
Unknown column 'np.person' in 'where clause'