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 (44531,6875,45043,34194,4686,18688,45229,14622,6782,17335,44671,44866,44856,44739,44845,5388,44854,18286,18301,44875,24411,17703,5410,44873,17492,18237,19078,44711,44835,44764,44674,44685,44762,17657,45567,17848,18996,17601,18650,44869,13922,5259,32454,44863,19057,17771,18894,17237,18172,44868,45421,13425,30135,13,22509,44766,17114,44765,45518,44767,16885,18427,17981,18185,8753,28530,4765,44848,45072,17755)
Unknown column 'np.person' in 'where clause'