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 (17556,44849,44866,44768,18688,44739,17839,18981,44767,44845,44875,44865,18430,45421,44669,44851,18719,44863,18572,44835,18353,17527,44531,5259,4686,44848,45229,8753,6862,13988,44836,45262,17755,44854,44765,37057,5388,9341,30135,18172,44775,44873,19057,44689,18794,17981,3,32454,5993,17657,17335,18648,18446,17092,30986,18894,18900,18279,44687,18185,17848,28313,17492,17009,45516,5410,44674,14622,3883,45346)
Unknown column 'np.person' in 'where clause'