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 (37057,44848,3883,44894,44861,44873,17755,44689,44856,44835,45561,17527,4765,17492,44849,44739,18286,18648,17556,44767,17848,4686,44845,24441,17703,9341,17835,44870,43800,17839,18996,45072,17657,44531,19057,45277,44858,44711,17092,44855,6862,3,30963,44685,18185,18981,13425,44868,44687,44766,44762,44669,18301,44867,44765,17351,17771,18353,6875,5388,18894,22509,44768,44869,19078,17335,28530,39676,18650,44764)
Unknown column 'np.person' in 'where clause'