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 (6875,18894,44837,17657,17114,45043,44845,17904,44853,45517,19078,18430,14622,45567,45561,44861,16885,18042,44531,13988,44765,17839,44848,22509,18353,44870,44766,44878,44640,19057,44685,4686,44669,18427,3,44687,30986,32454,24438,44689,5259,45277,45177,17092,44835,44767,44858,24412,17556,17835,44865,18279,44854,17601,44894,17492,4765,44762,18900,24441,5388,44875,17848,45180,30963,18688,6609,45262,44868,16935)
Unknown column 'np.person' in 'where clause'