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 (18237,44858,24438,44775,5259,30986,17601,18172,44849,9341,24441,18286,44685,44894,6875,44851,17848,18688,44768,44873,18301,44837,44640,18900,44674,17492,5993,17092,39676,44878,44669,6609,3,17556,30963,17009,18279,22509,17237,6782,44836,44854,44870,18042,44868,44711,44766,44869,44687,17771,4765,24411,17657,17335,44848,17755,44867,44762,4686,24412,44531,5410,37057,45177,17703,45567,17756,44835,13425,44865)
Unknown column 'np.person' in 'where clause'