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 (18279,18286,44849,17835,44531,24412,43800,5993,44878,45051,24441,16885,18430,44845,6609,17492,32454,13988,18650,14622,18996,14402,44745,16935,45421,22509,18894,6875,19078,18042,39676,44640,44865,18353,45277,44853,18652,8753,6782,44848,44674,44762,13,44894,17848,18185,37057,31354,44868,17839,44687,44685,44884,45517,30135,13425,17904,17755,45042,6862,45561,44739,18427,5410,45516,44669,17237,5388,30963,45262)
Unknown column 'np.person' in 'where clause'