I have created a table called ccc_campaigns in my database and I am retrieving the data with the following statement:
global $wpdb;
$campaign_list = $wpdb->get_results(
'SELECT *
FROM ccc_campaigns
ORDER BY id DESC');
This works as expected on my local and on one of my servers, the data is displayed doing:
foreach ($campaign_list as $campaign)
But in the server where this wordpress is supposed to be, the query comes back empty. I can't understand or find a reason why it is failing on that server.
Any ideas?
Thank you so much