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 (5259,5410,44768,17556,18794,30135,17657,6875,18688,17492,45051,45561,44848,45277,44671,18353,17981,17278,44875,24438,44674,44894,44858,44640,18430,44775,32454,45567,44853,44863,18279,44873,45346,13,18996,22509,18237,44836,44849,3,44711,28313,18301,44855,4686,44687,45518,8753,9341,13988,37267,44766,37057,18572,44865,6862,24411,4765,45262,18172,24412,13425,3883,45515,17601,16935,18648,44739,17756,44745)
Unknown column 'np.person' in 'where clause'