I am trying to retrieve the second result of this query (which works successfully):
$assist_stats = App\Stat::whereRaw('assists = (select max(`assists`) from stats)')->get()->first();
With this modified code:
$assist_stats2 = App\Stat::whereRaw('assists = (select max(`assists`) from stats)')->get([1]);
But I get this error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column '1' in 'field list' (SQL: select `1` from `stats` where assists = (select max(`assists`) from stats))
How would I retrieve the second result from the query?
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I was trying to find some answers about this, and I couldnt find any possible post with similar/same problemPlease excuse me If I somehow missed it
I have set up a Flask app that is connected to my mysql databaseIt can POST request fine and also GET
So I followed what they did here: MySQL query to search for items with certain tags
I am doing a project for my Master Degree where I have a 500GB of MySQL databaseMy project has to do with StackOverflow thus why it is so big