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 (18237,4686,17092,17527,13922,44861,14622,3883,18301,44671,45516,44870,24412,17657,6875,44687,17278,44845,30986,32454,22509,45421,44849,17835,6782,44745,13988,18794,18894,18981,30963,45180,44869,44765,18900,37057,44766,16935,17351,18650,18996,45561,45277,17114,44875,44854,43800,44836,13,28313,17009,44863,45229,17755,44768,45262,18430,24441,17335,44531,5388,44669,17756,44866,24411,45177,44689,44856,31354,17492)
Unknown column 'np.person' in 'where clause'