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 (14622,44837,6862,5410,44765,30135,17009,44768,3,32454,45051,30963,44669,16935,13988,44873,44878,5259,44884,14402,18446,37267,9341,5388,18719,18996,18301,44739,44766,44848,44685,44854,17848,17335,37057,19057,18688,44875,18794,17601,31354,45567,18648,17556,44861,44851,6609,17835,45229,45177,44775,44865,6782,44687,44835,28530,17839,44689,24438,4765,44858,44869,17351,44762,28313,18353,17527,18894,17657,17771)
Unknown column 'np.person' in 'where clause'