Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44861,16885,17981,18427,18648,44671,44766,6875,44685,30963,17835,44762,17703,44531,44875,18794,45042,44863,5410,18353,24441,18652,37057,17771,45516,18286,34194,32454,44836,9341,39676,18172,44868,17092,44873,44739,18688,44849,45277,45561,44687,44674,19078,17335,17278,17756,17492,44848,18185,44845,44764,4765,17657,17114,44878,13922,17755,5993,44894,44711,5259,22509,44765,18894,18650,30986,44867,3883,36472,45517)
Unknown column 'np.person' in 'where clause'