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 (18172,44837,45346,5259,44855,18042,17237,17657,44764,13425,44687,18286,4765,3883,14622,24412,44685,17756,28530,44873,6862,45043,3,5388,13988,39676,44884,18185,44861,17527,44845,45421,44858,44762,30135,44531,37057,44867,19057,18446,44674,30963,17755,18427,18652,44669,17092,44868,44745,8753,36472,44766,18900,6782,34194,19078,44894,45177,44671,17904,45229,17771,24438,17278,22509,28313,44865,18794,5993,30986)
Unknown column 'np.person' in 'where clause'