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 (5410,18446,44861,5993,18794,44867,45051,18572,24412,17601,6609,45262,17009,13,44762,44531,3883,30986,18900,13425,17527,18301,17114,10402,6875,44866,44689,44884,44745,44878,44739,28313,19057,17556,24438,44669,16935,28530,18688,45517,30135,17904,30963,24411,16885,44848,6862,44835,44863,18648,37057,18172,17092,44836,17657,44687,13988,45346,24441,13922,44894,45043,14622,44865,22509,45567,44671,44851,18652,17351)
Unknown column 'np.person' in 'where clause'