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 (17527,18237,5388,18172,3,37057,45229,39676,37267,43800,44768,44884,44762,19057,28530,18688,30135,17904,44531,44765,18981,22509,44687,5993,17009,24441,18286,44689,8753,44685,6875,44869,18572,6782,18430,45072,17335,30963,45051,44745,13988,4686,5259,17092,17492,18301,30986,44875,13425,18446,45180,44873,17237,44640,18279,16935,17556,18650,44837,44865,44867,45277,44854,13922,5410,6862,44894,44739,45515,18719)
Unknown column 'np.person' in 'where clause'