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 (18427,44836,17981,44739,37057,17839,13922,4686,6782,17237,24441,28530,44873,17657,6875,17492,5259,45043,45177,18900,28313,5993,44861,44849,18446,45180,44766,44837,44768,18237,44851,44894,31354,43800,17755,18688,17527,9341,18981,17335,45518,4765,24412,45421,44884,44640,5388,13988,17556,18286,44858,44674,30986,18042,44685,18430,18648,44865,44875,24411,44765,18172,17835,44845,18185,30963,44745,44853,44878,44870)
Unknown column 'np.person' in 'where clause'