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 (3883,18353,17278,44767,18894,44869,17703,17351,18301,45515,18185,44835,24412,45286,44867,44856,44873,44766,18981,17904,44870,18237,17981,39676,37057,17771,13,18794,45051,44837,16885,44745,45072,44685,6875,44863,44848,44765,44853,44762,17492,37267,17657,22509,44640,5410,44866,9341,17601,6609,17756,44531,44865,44878,18446,18286,6782,44845,17114,45177,44739,43800,13988,3,36472,44884,44671,45346,6862,24441)
Unknown column 'np.person' in 'where clause'