Select failed:
SELECT picID,file_name,price,special,shipping,saleID,status,crypto_button,onMBG,online,title,presentation,maindes, details, shared, name, dates, a.artistID FROM pictures p LEFT JOIN artists a USING (artistID) WHERE picID = 8564 AND (p.online = 1 OR p.onMBG = 1) AND p.LFA > 0 AND p.status IN ('F', 'K', 'R', 'N', 'P', 'S', 'V','pc','missing') =
Column 'online' in field list is ambiguous