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 (14402,44837,17278,44671,45346,4686,17492,24412,45229,44765,44762,18430,44689,44868,45051,30986,44711,6875,18042,17657,44640,5993,45517,5259,13922,18427,6782,9341,44856,44835,18172,3,17335,45262,17092,18794,18237,22509,5410,44767,4765,17237,44884,18996,17556,19057,18301,44855,24411,13,18286,10402,37267,44849,18650,28530,45072,18900,45567,44764,45043,44870,32454,17009,44861,44685,37057,44739,44858,44865)
Unknown column 'np.person' in 'where clause'