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 (44685,5993,44878,32454,5410,16935,17904,17771,13988,44671,3883,43800,44835,44854,17492,18185,44531,45286,6875,44869,17278,24411,18279,4765,17527,45051,44875,18650,44867,18719,17981,44894,44767,44711,18430,17009,44689,44845,14622,17237,18652,17114,30986,17848,17601,6862,44855,24412,28313,18996,44853,18353,18427,31354,18237,17351,44858,18648,17703,18688,44873,13,44764,44762,17092,30135,44687,45042,19057,13922)
Unknown column 'np.person' in 'where clause'