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 (44866,6782,14402,19057,44856,44762,45229,44865,44685,45051,3,13,45517,6862,17351,30986,37267,44869,28313,17703,18237,18996,45516,45180,5410,44671,17657,44894,18894,6609,44867,44855,17835,17904,44836,37057,8753,45561,45177,45072,13425,18427,17771,28530,44767,5388,22509,44835,18430,44868,44863,45042,44669,3883,16935,17556,17278,24438,44775,44849,13922,18301,44858,24412,45421,30135,18794,30963,45346,18900)
Unknown column 'np.person' in 'where clause'