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 (18650,44851,18900,44869,44856,44849,18301,17848,18794,44775,44685,44884,45516,44711,43800,30963,17657,3,44766,18042,45567,44855,39676,13988,44764,44689,24438,44845,17756,6862,44837,45421,17771,24411,18719,37267,13425,17904,5993,6609,18172,45515,17092,44865,44894,44768,44640,44745,45229,44674,18894,44669,44853,18427,17335,44765,44531,6782,17601,44858,37057,13922,45346,45561,44671,17981,44863,32454,3883,34194)
Unknown column 'np.person' in 'where clause'