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 (14402,18427,8753,44640,30963,45180,4686,43800,44849,4765,44878,44884,18353,45177,44848,44768,13988,5388,17771,44853,44836,18648,22509,18172,5410,18652,18430,17278,17756,45043,44685,17839,16885,44687,17657,28530,24438,17527,45421,13425,18981,18900,44767,30135,45515,18650,39676,17601,44894,44845,24412,45072,17981,44671,45262,17092,17556,17848,45516,45561,44531,44745,5993,44865,18688,44863,44765,37267,13,19057)
Unknown column 'np.person' in 'where clause'