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 (18794,14622,39676,18446,44671,45515,18719,24438,3,45516,17335,18688,45421,16885,44836,44858,44745,44685,44867,44837,18900,44765,44766,17756,44875,44768,5410,45043,5259,17981,18430,6862,44878,44868,43800,44689,17601,45277,18652,45177,18237,44861,44835,17237,22509,13922,44711,44848,6782,13988,45286,44855,44884,18650,45072,45561,28530,45517,44865,44762,37267,45180,17904,45567,44531,17527,24411,5388,44764,6875)
Unknown column 'np.person' in 'where clause'