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 (44863,17114,18572,17755,44873,17556,14622,24411,3883,17092,18688,6875,44531,44775,18353,44870,17835,44765,45421,13988,44837,18650,22509,18430,18894,44766,44858,43800,30963,37267,45051,17904,17237,44640,44875,45561,3,44685,44848,45516,5993,13,44867,18794,44866,18446,6782,5388,6609,24438,18301,44835,24412,5410,37057,45286,44674,31354,18042,17756,17492,13922,44687,44849,44745,18900,30986,19078,18652,45180)
Unknown column 'np.person' in 'where clause'