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 (18286,44671,6875,44854,5259,44855,44873,44739,45177,44835,18900,37057,17278,44863,45515,17839,18353,13,44845,28313,44837,44687,17335,18652,44766,44767,17835,39676,17755,18172,44870,45561,44765,44858,4765,6782,44689,5388,18981,44867,17981,18301,6609,44865,45517,17848,44669,45180,17756,44764,17904,17657,18894,18572,18688,24441,44875,5993,17601,18042,6862,13988,44861,19057,13922,13425,44711,45277,18719,17703)
Unknown column 'np.person' in 'where clause'