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 (13,44867,45177,6875,24411,44762,44863,5259,17114,18427,39676,6609,18286,45518,44674,17335,17527,45517,44775,45421,28313,18996,44689,44685,31354,45229,13988,6782,28530,13425,44869,45561,45567,10402,45262,5410,44878,30135,19078,44865,45286,19057,34194,43800,5993,18794,4765,45346,14402,17237,45516,8753,17756,44894,18301,44861,17492,17839,5388,17848,13922,17278,44866,44767,44640,3,44671,24438,44845,18688)
Unknown column 'np.person' in 'where clause'