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 (24411,44853,45286,13,18794,17527,44711,44873,37267,18996,17351,45561,18688,44687,43800,44765,44685,5388,4686,6862,44894,44878,16935,44671,44867,16885,3,44851,44640,45421,44869,19057,44762,17009,18446,34194,44836,13922,17237,18981,17848,18652,44854,44775,44837,17492,18572,24438,18237,45229,36472,44865,4765,3883,28530,14622,18719,44863,45346,18427,17755,44835,18650,44669,18353,18894,17556,44767,30135,44866)
Unknown column 'np.person' in 'where clause'