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 (19078,10402,45072,13425,44762,45346,44867,24438,44866,14402,44863,18286,14622,44687,44868,43800,44858,44689,13988,44837,18688,30135,9341,44856,18430,4765,45518,44849,17335,5410,44870,18650,44869,18572,18446,44764,45561,16935,18981,17703,37057,3,44745,19057,44767,30963,17237,44739,44865,44861,45567,17839,44845,44711,17835,17848,6862,8753,24411,17771,5993,45051,24412,36472,18648,17492,44884,16885,17556,45515)
Unknown column 'np.person' in 'where clause'