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 (5993,45346,6609,44849,28313,18446,16935,24438,17092,39676,17556,4765,17278,17492,17756,44674,18894,10402,45517,44878,18648,17755,44875,44858,17237,3883,17904,8753,44835,19057,18688,18353,17351,24411,30135,13922,45516,14622,44873,37057,45229,18650,44863,44848,17839,28530,44868,6875,45286,45262,18286,45043,18279,44766,13425,45042,18900,17601,22509,30963,44775,17114,44765,44687,32454,44768,45561,18185,13,34194)
Unknown column 'np.person' in 'where clause'