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 (37267,45051,45180,44669,18900,17904,17009,24438,44836,30963,13,34194,4765,17527,45277,45286,18286,18650,5410,44640,44685,13988,44866,3,6862,17848,45567,18237,44849,44863,14402,45177,44671,19078,17114,44845,44894,44739,44762,18572,44870,44689,44531,36472,44775,45516,17601,45229,19057,5259,28530,17492,44865,44868,44851,18446,17839,44875,13922,44853,45072,22509,44768,10402,3883,44855,6875,17237,31354,6609)
Unknown column 'np.person' in 'where clause'