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 (28313,17771,44875,39676,44531,14622,44854,18900,5259,17904,13425,18996,44767,18353,37267,45515,22509,13988,45561,18650,17335,16935,30986,44768,17601,32454,24438,28530,44671,44849,45421,45042,44845,44867,5993,44863,17756,30135,44765,44837,44764,17657,3,18237,45517,17839,10402,3883,18446,45051,4686,44894,44835,18172,44865,43800,44878,44711,44836,44848,6782,44745,45567,45518,17092,44870,18894,13,44766,34194)
Unknown column 'np.person' in 'where clause'