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 (17335,18981,18794,39676,13988,45517,45072,17771,3,45516,45051,31354,13,44689,44865,44845,34194,44837,44868,30963,18650,44836,44863,44870,44674,24411,18185,4765,44853,45229,24438,44687,44765,43800,44685,5388,44531,37057,45177,17092,6782,18894,17981,45042,44856,44858,3883,18719,30135,5259,17835,19057,6875,22509,17755,10402,18572,44873,44767,14402,18237,18648,44669,32454,18172,44775,44745,17492,44640,30986)
Unknown column 'np.person' in 'where clause'