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 (18237,17981,44669,37057,44865,44868,18446,44884,18279,45051,44775,17527,44689,22509,17904,17009,5259,18652,44861,18648,45567,45229,13922,45518,44853,17237,6862,17771,28313,18894,44851,18286,45043,45561,45277,13425,24438,45042,44762,44870,44640,18981,44873,45177,18572,44687,17492,44848,18794,18719,17092,44845,18042,16885,44685,44836,44858,17848,45515,18301,44837,14622,4686,44767,9341,18900,44674,24412,18650,45286)
Unknown column 'np.person' in 'where clause'