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 (44894,44775,18301,44764,18652,17657,44640,17556,13988,17601,44865,18572,45567,18650,3883,4765,18688,39676,17703,32454,6609,17335,45043,44689,44848,45421,37057,18237,44766,45286,18446,18286,44855,18042,18353,45561,44854,18279,18430,44867,44845,37267,13425,44669,17527,44853,44863,44858,30963,17839,44835,5388,18996,44745,45518,44849,5259,44685,45229,44711,44875,19078,44866,30986,45262,45277,18894,14622,44836,17755)
Unknown column 'np.person' in 'where clause'