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 (30986,44762,30135,45277,18430,45286,44685,44531,13922,39676,44868,18237,44835,17114,45567,17601,18279,17335,31354,22509,44845,44711,44671,17556,44873,17657,44867,5993,17492,18172,24412,44894,44848,28313,37057,44878,45229,32454,44674,45518,5388,17351,34194,44767,44854,44865,44866,44669,18652,18286,17278,14402,16885,45177,14622,45561,24438,44856,17703,44745,44861,44858,44766,45042,17237,44687,17771,44775,45180,44875)
Unknown column 'np.person' in 'where clause'