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 (44531,5388,17335,37057,44845,44687,18650,44767,44762,44689,44849,18652,17492,44837,44884,13988,18286,18719,17009,18427,17771,44861,44869,19057,18446,45262,18794,17237,30135,3,18996,28313,45180,44669,24411,30986,44848,39676,17527,18688,30963,44835,43800,45517,13922,44855,6875,5259,32454,17351,17835,17601,44768,17278,17657,3883,4686,5410,44863,45561,45177,17756,18172,37267,17755,44867,44851,44868,45286,44854)
Unknown column 'np.person' in 'where clause'