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 (18430,24438,18185,44865,43800,18894,17335,17556,32454,44845,44674,18794,34194,44863,37267,5388,44739,44856,44762,18688,6782,44640,44861,4765,44836,6862,17492,14622,18172,45262,44853,18648,45516,19057,45515,37057,17703,44765,44851,24441,44873,44854,22509,18446,17835,45043,17755,45286,45277,18353,36472,17839,18237,18650,17657,44767,17981,6609,18981,44884,5259,45177,45561,44868,44689,44848,17527,44685,17351,18652)
Unknown column 'np.person' in 'where clause'