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 (18446,28313,17835,44745,44867,37267,5388,44837,44685,45042,44835,18652,44765,18688,17981,45346,18301,44861,17237,44868,17527,18648,6875,32454,44863,19057,17703,17904,28530,18572,45180,30963,18894,44851,6782,6609,45567,37057,13988,45229,39676,44640,44687,44775,13,44854,44845,44856,44766,17278,17556,44855,45043,44865,44531,17351,44711,17601,6862,18900,4765,10402,17755,17848,44836,17492,44689,18286,17009,9341)
Unknown column 'np.person' in 'where clause'