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 (18688,17527,32454,18652,5410,17009,13,44855,24411,44685,44858,18894,44835,45517,5259,45286,44869,18650,44837,14622,44849,44765,17756,18446,44745,45421,18572,44836,18996,30986,34194,45262,44848,44762,6782,45561,17904,24438,5388,19057,10402,18430,44669,44861,13988,44875,45346,37057,17556,44856,45180,44640,17839,18794,18286,17278,43800,28530,45277,18237,18185,16885,44851,44739,45177,44866,17601,39676,44845,28313)
Unknown column 'np.person' in 'where clause'