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 (45262,13922,44835,36472,43800,17114,6862,44765,44849,18430,44873,9341,18172,4686,44687,18237,44685,16885,17657,44764,18719,17981,45043,18688,8753,17335,22509,6609,44762,5410,44775,18427,18794,13425,30963,16935,45516,44848,44853,45229,18042,45072,5993,13988,18996,17755,44858,45286,17092,44875,44856,39676,5388,44669,6875,4765,17237,45177,37057,24411,44863,44867,17756,44837,17703,17556,24438,18446,6782,28313)
Unknown column 'np.person' in 'where clause'