Unable to prepare MySQL statement (check your syntax) :- Table 'aptsoft_clients_db.app' doesn't exist;
This is your query :- select id from app where app_type=''