Can not get FirstName and LastName columns for a custom lookup column using Query API

Can not get FirstName and LastName columns for a custom lookup column using Query API

For default lookup columns such as Owner, when executing the following query in Query API I was able to get data
{
    "select_query":"select Owner.first_name,Owner.last_name,Owner.id from Accounts where id is not null"
}

However I have created a custom lookup column and when executing the following query: 

{  

  "select_query": "select  Lookup_2.first_name, Lookup_2 .id, Lookup_2.last_name from Accounts WHERE id is not null limit 0,200"  

} 

I get the following error: 

{"column_name":"Lookup_2.last_name"},"message":"column given seems to be invalid","status":"error"}

Are FirstName and LastName columns exposed in custom lookup fields or only on default ones?

Note: I have executed the query above using only FirstName and the same error is thrown, but when using only Id the query is executed successfully.

    Zoho Developer Community






                              Zoho Desk Resources

                              • Desk Community Learning Series


                              • Digest


                              • Functions


                              • Meetups


                              • Kbase


                              • Resources


                              • Glossary


                              • Desk Marketplace


                              • MVP Corner


                              • Word of the Day



                                  Zoho Marketing Automation


                                          Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now