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 (44685,45229,17335,44873,45277,44861,30986,24438,18185,17527,17556,28530,6875,18900,17904,17009,44853,17351,5388,32454,44837,31354,17492,44845,44765,18894,16935,44854,45051,17703,18688,30135,17755,18981,34194,44531,45072,44671,5410,37057,22509,44884,18427,44674,3,44836,24411,44640,45042,44669,17848,13922,44687,17839,18301,44865,44768,17278,44869,5993,13988,16885,17237,13425,17835,44875,44870,45043,45561,44689)
Unknown column 'np.person' in 'where clause'