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 (45286,31354,5993,18446,17839,44640,17981,44867,44764,34194,39676,44766,44875,19057,8753,17335,18894,37267,18572,44878,44863,3883,44669,17848,44711,44858,13922,44837,45277,44674,45421,17771,6862,17756,30986,44851,44768,44689,44873,10402,19078,45229,44854,44849,5410,17492,17703,17601,45346,18301,44884,18237,9341,30135,44685,44835,16885,5259,17092,22509,37057,44745,13,45567,44739,17278,44762,18353,5388,44894)
Unknown column 'np.person' in 'where clause'