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 (30963,18172,36472,45051,44689,30986,45262,45043,44867,44878,18353,4686,17492,5388,3883,44835,44863,5993,17904,18279,6609,6782,17114,14402,16935,44858,18648,3,16885,28530,24412,45517,19078,28313,45518,44845,44762,45567,44671,44685,19057,30135,34194,44766,18042,17092,24438,18652,18794,45515,22509,17771,44745,18650,44775,44855,44875,18446,18900,13,8753,17335,13425,17278,17527,18688,44869,44849,45180,39676)
Unknown column 'np.person' in 'where clause'