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 (44765,17278,45516,5259,44865,5993,6875,18650,44766,17703,17601,13988,3883,17755,45042,17092,44762,44835,45177,44745,45229,44669,30963,14402,19078,18794,16885,14622,44837,18652,44836,18719,45517,18353,10402,44873,44894,17527,30135,44711,6609,18894,45277,6862,17556,24441,17835,44687,17981,44848,24438,18427,44863,17009,4765,24411,17492,16935,17848,5388,4686,17904,44855,44851,44640,44854,45561,18279,44685,17335)
Unknown column 'np.person' in 'where clause'